Sign in to follow this  
IntegralKing

PCSS with directional light.

Recommended Posts

[color="#333333"][size="2"]I am implementing [url="http://http.download.nvidia.com/developer/presentations/2005/SIGGRAPH/Percentage_Closer_Soft_Shadows.pdf"]PCSS[/url] and I am using a directional light. The directional light volume is clamped to the camera frustum (as is typical with directional lights). So when the camera rotates, the directional light volume can find a tighter bound on the camera frustum in some cases, and then all of the depth values can increase/decrease.

This causes the blocker search to find different blocker distances from the light source, and so the penumbra sizes change based on the camera rotation.

Has anyone dealt with this problem before? How can I compensate for changes to the light depth map (aka shadow map) when the camera rotates?



Here are some images demonstrating two camera views, visualizing the penumbra values (brighter indicates where a larger penumbra should go) and the corresponding light depth maps (shadow maps):[/size]
[/color]
[color="#333333"][img]http://i.imgur.com/wD6ry.png[/img]
[/color]
[color="#333333"][img]http://i.imgur.com/EQ0vmh.png[/img]
[/color]
[color="#333333"][img]http://i.imgur.com/fon5i.png[/img]
[/color]
[color="#333333"][img]http://i.imgur.com/UszNQh.png[/img]
[/color]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this