Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better Shadows
04-18-2011, 12:38 AM
Post: #1
Better Shadows
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?

YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2011, 01:16 AM
Post: #2
RE: Better Shadows
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.

[Image: nautolan_tonberry.png]
YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S| YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S| YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S | YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S
SWGEmu is a non-profit, open source community project.
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2011, 03:12 AM
Post: #3
RE: Better Shadows
(04-18-2011 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?

YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S
Visit this user's website Find all posts by this user
Quote this message in a reply
04-18-2011, 02:19 PM
Post: #4
RE: Better Shadows
(04-18-2011 03:12 AM)MechWarrior001 Wrote:  
(04-18-2011 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]
Find all posts by this user
Quote this message in a reply
04-18-2011, 02:35 PM
Post: #5
RE: Better Shadows
I'm all for people giving it a go. Perhaps our community will be more successful than those who tried over at modsource. Tongue

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

[Image: nautolan_tonberry.png]
YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S| YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S| YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S | YOU MUST REGISTER AND ACTIVATE TO VIEW URL'S
SWGEmu is a non-profit, open source community project.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread:
1 Guest(s)

Return to TopReturn to Content