Jump to content

  • Log In with Google      Sign In   
  • Create Account

Stable Cascade Shadows


Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


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

#1   Members   

225
Like
0Likes
Like

Posted 21 June 2012 - 12:17 AM

http://the-witness.net/news/wp-content/gallery/valient-shaderx6-figures/figure_412.png

I saw this image and I currently have CSM implemented in my SlimDx project. However, when the camera roates, you notices the shadows move slightly. I'm not talking about the jagged edges that swim. I was hoping someone could explain more of the process about using bounding spheres for stabling CSM.

Thanks in advance.

#2   Members   

3598
Like
1Likes
Like

Posted 21 June 2012 - 09:13 AM

To remove the edge shimmering you can follow this article scroll down to the section "Moving the Light in Texel-Sized Increments" and also this topic (read the second MJP post and you should be able to fix it!).

Edited by TiagoCosta, 21 June 2012 - 09:15 AM.


#3   Moderators   

18218
Like
1Likes
Like

Posted 21 June 2012 - 04:38 PM

The image is from ShaderX6, if you're interested. The basic idea is that for each cascade, you partition the viewing frustum using a depth range and then build the 8 corners around the slice of the frustum representing that particular partition. Normally you build a light-space AABB around those corners to get a tight fit, but with stable CSM you use a bounding sphere instead (which you can actually do in world space instead of light space, since it doesn't matter for a sphere). Then you also do a little math to round off the translation of each partition, so that they only move in texel-sized increments.

#4   Members   

225
Like
0Likes
Like

Posted 21 June 2012 - 07:43 PM

Thanks guys! I might check out buying that book.




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.