Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


How do get the optimal peter-panning offset using shadow resolution?

  • You cannot reply to this topic
No replies to this topic

#1 white waluigi   Members   -  Reputation: 101

Like
0Likes
Like

Posted Yesterday, 02:55 PM

I'm currently working on a dynamic shadow system using depth shadows and deferred shading (light volumes). 

The current problem is, that I get shadow acne, meaning theres faulty shadowrings in places, that are completely lit.

Is solved this problem somewhat by putting in a peter-pan offset (I multiply the shadow maps depth by 1.03 in order to get an offset that gets biger with distance) to the depth comaprison in order to get rid of them. 

But the current problem is that with shadows with lower resolutions, I still get artifacts and with shadows with higher resolution I get inaccurate shadows, because of the peter-panning.  

So is there an algorithm that lets me estimate the required offset considering distance from light and shadow resolution?

 



Sponsor:




PARTNERS