Sign in to follow this  
BlackBox

Self Shadows with shader programs.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Check the DirectX 8/9 SDK. There's a self-shadowed spinning Earth example. It can also do it with render-to-texture.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Just because you're not using DirectX, doesn't mean you can't look at the algorithm to get some information & pointers

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this