Jump to content
  • Advertisement
Sign in to follow this  
BlackBox

Self Shadows with shader programs.

This topic is 5003 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!