Jump to content
  • Advertisement
Sign in to follow this  
foxmanx_7

Shadow mapping improvement

This topic is 3144 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

Hi, i was making some tests of shadow map implementation in my engine, and i saw that the depth resolution was too low ( depth value not the texture resolution ), causing some glitchs on self shadowing, i then tried to do the shadow texture with float to float3 codification, and so after that codification the quality of the shadow have increased a lot, the glitchs disapeared. My question is, why no one use this? Every book that i've readed used to put the depth value in one component or in all components of the depth texture. Anybody here already done this too?

Share this post


Link to post
Share on other sites
Advertisement
Haven't done shadow mapping for quite a while now, but if I'm not mistaken you usually use a texture with only one 24 bit channel or something similar.

Share this post


Link to post
Share on other sites
Most people either use a single-channel 32-bit floating-point texture (which means no ugly encoding/decoding, and better precision) or they use a hardware depth buffer.

Share this post


Link to post
Share on other sites
According to Nvidia, current 32bit hardware depth textures are just as fast as the old 24 bit ones, so use them freely to avoid those nasty artifacts.

Share this post


Link to post
Share on other sites
Thanks people!
I will try it with a floating-point texture instead of the actual texture, and will be posting the results soon.

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!