Skip to main content
GameDev.net gamedev.net
🔒 Locked

Self Shadows with shader programs.

Started by BlackBox Nov 30, 2004 at 10:03 AM 4 replies 1.2k views
Original Post
BlackBox
BlackBox
Is it posible to calculate self shadows in vertex and fragment shaders? If yes, can you please post any link or something where I can get more information. Thanks.
---------------------------- ^_^
MrEvil
MrEvil
Check the DirectX 8/9 SDK. There's a self-shadowed spinning Earth example. It can also do it with render-to-texture.
BlackBox
BlackBox
Quote:
Original post by MrEvil
Check the DirectX 8/9 SDK. There's a self-shadowed spinning Earth example. It can also do it with render-to-texture.


i'm not using DirectX :(

Thanks anyway. Any other suggestion.

---------------------------- ^_^
MrEvil
MrEvil
There's a guy at http://frustum.org/ who has done an example with horizon shadows, I don't know if that's exactly what you want. It's called DisplacementTexture.tar.gz
BlackBox
BlackBox
Quote:
Original post by MrEvil
There's a guy at http://frustum.org/ who has done an example with horizon shadows, I don't know if that's exactly what you want. It's called DisplacementTexture.tar.gz


Thanks for you answer.

Well the only problem is that those shadows don't look real enough.

:(


btw.
At the moment Im doing my rendering with:
vertex textures in the vertex shader plus
bump mapping in the fragment shader.

The only thing a need now is self shadows, but all algorithms are too complex to run them in real time.

The fastest self-shadows that I can do at the moment are using the shadow part from relief mapping.

Any other suggestion?


Thanks.
---------------------------- ^_^

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.