Jump to content
  • Advertisement
Sign in to follow this  
maya18222

Crysis Shadows

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

I know that Crytek use random jittering for their shadow map sampling to blur out any aliasing. But I dont understand how they get soft shadows in the case where the ShadowMap/Screenspace pixel density are very close to each other.

For example, take a scene where the pixel density for the shadow map was suitably match up, ie the case when you dont see any aliasing. In this case, when they sample the surrounding pixels of the shadow map, due to the pixel density being good, random shadow map samples would appear very close to the screenspace pixel and you would get sharp edges.

Such as in the case when applying PCF to a frame with very high resolution shadowmaps, that dont exhibit aliasing. You barely see the softness.

I guess what Im saying is that as you increase the shadow map size, wouldnt you also have to increase the sampling radius?

Share this post


Link to post
Share on other sites
Advertisement
Keep the number of samples the same for speed, but maybe increase the amount by which each sample can be jittered? Or maybe some kind of screen-space solution?

Here's a screen-space blurring. Of course, in screen space, all blurs will give the same result regardless of pixel / shadow map texel ratio
http://www.gamedev.net/page/resources/_/technical/graphics-programming-and-theory/soft-edged-shadows-r2193

Share this post


Link to post
Share on other sites
I was hoping to know how they determine how far out to make the samples. How can you determine the pixel / shadowmap texel ratio, in order to spread out the samples by more or less?

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!