Jump to content
  • Advertisement
Sign in to follow this  
Baltz

Shadow map Artifact from Self Shadowing

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

Hello everyone i have a self shadowing problem using shadow maps the shadows work just fine except some spots which look like in the picture below www.baltzstudios.com/artifact.jpg does anyone know whats wrong and how to fix it ? :P i am using a simple version of shadow mapping

Share this post


Link to post
Share on other sites
Advertisement
thats quite normal, try to increase the z bias and maybe add a little offset when comparing the shadow depth buffer with your scene depth buffer (very small). maybe you have also a percision problem, try using a greater bit depth (32 bit instead of 8 or 16 bit).

shadow mapping is a lot of tweaking, especially if you don't have high percision formats available.

Share this post


Link to post
Share on other sites
Quote:
Original post by Baltz
Hello everyone

i have a self shadowing problem using shadow maps

the shadows work just fine except some spots which look like in the picture below


www.baltzstudios.com/artifact.jpg


does anyone know whats wrong and how to fix it ? :P

i am using a simple version of shadow mapping



If the object is closed, render only its backfaces (backfaces to the light source of course).
Try some bias too, especially good if your shadowmap depth isn't dependant on perspective (then bias can be constant across the scene).
Try PCF. Then try VSM. :)

Share this post


Link to post
Share on other sites
I have been playing with the zbias the last couple of days almost as much as i have with my willy... :P

i guess i will have to move on to techniques such as VSM or PCF

thx for the ideas gyes

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!