Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better Shadows
#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?
[Image: RebelFactionStanding.png]
 
Reply
#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.
 
Reply
#3
(2011-04-18, 01:16 AM)Tonberry Wrote: 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?
[Image: RebelFactionStanding.png]
 
Reply
#4
(2011-04-18, 03:12 AM)MechWarrior001 Wrote:
(2011-04-18, 01:16 AM)Tonberry Wrote: 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.

Quote:m4x4 is a "complex" instruction which theoretically takes 4 cycles, that is to say the same time as the mul and 3 mad above
[Image: 2156b479.gif]
 
Reply
#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.
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)