Better Shadows

Oct 13, 2010
108
0
16
www.moddb.com
#1
Ok, so I was looking through the vertex shaders and I'm pretty sure I found the one that controls shadows (I could be wrong though.)

shadowvolume.vsh
Code:
//asm
TARGET

#include "vertex_program/modules/registers.inc"
dcl_position0 vPosition

m4x4 oPos, vPosition, cObjectWorldCameraProjectionMatrix
Now, I don't know HLSL (Yet, anyways >_>) but something's telling me some part of this could be improved. Anyone got any ideas?
 

Tonberry

Inactive Staff
Aug 30, 2010
372
0
0
www.modthegalaxy.com
#2
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
 
Oct 13, 2010
108
0
16
www.moddb.com
#3
Tonberry said:
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
I would give it a try, but I can't seem to make myself actually sit down and learn HLSL >_>

Concerning those previous improvements, what did they do? Performance increase or quality increase?
 

Uli

Moderator
Staff member
Moderator
Aug 30, 2010
208
1
18
#4
MechWarrior001 said:
Tonberry said:
Shadows can be improved yeah, but its a touchy area. They are relatively bugged to begin with so its difficult to make improvements without making them worse. A few people have tried, but the improvement has always been so subtle its not worth it in the end.
I would give it a try, but I can't seem to make myself actually sit down and learn HLSL >_>

Concerning those previous improvements, what did they do? Performance increase or quality increase?
http://www.fairyengine.com/articles/hlsl2sided.htm

Can be quite helpful. Btw it explains what m4x4 instruction does and I'm unsure how you could improve on it.

m4x4 is a "complex" instruction which theoretically takes 4 cycles, that is to say the same time as the mul and 3 mad above
 

Tonberry

Inactive Staff
Aug 30, 2010
372
0
0
www.modthegalaxy.com
#5
I'm all for people giving it a go. Perhaps our community will be more successful than those who tried over at modsource. :p

P.S - Uli, that link might be worth posting as a guide, interesting stuff.