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

Shadow map Artifact from Self Shadowing

Started by Baltz Jul 2, 2006 at 5:15 PM 2 replies 4.2k views
Original Post
Baltz
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
abnormal
abnormal
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.
Microsoft DirectX MVP. My Blog: abi.exdream.com
Zemedelec
Zemedelec
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. :)

Baltz
Baltz
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

Topic Locked

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

Sign in to reply to this topic.