Advertisement Jump to content
Sign in to follow this  
newtechnology

Shadow Map problem

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

Advertisement

The shadow map resolution is not the only important factor, equally important is how large area is the shadowmap covering. Even a shadowmap with 4096x4096 would have extremely huge aliasing if you used it for example for the whole Skyrim map.

Share this post


Link to post
Share on other sites

What kind of shadow map are you using? How is it generated? How do you sample it? How is it filtered?

Share this post


Link to post
Share on other sites

Are youe using a custom filtering kernel? seems to me you have a bug in the depth comparison method which causes results between neighbouring pixels in the map not to match up.

Share this post


Link to post
Share on other sites

Are youe using a custom filtering kernel? seems to me you have a bug in the depth comparison method which causes results between neighbouring pixels in the map not to match up.

This was the problem. I forgot to restore the rasterizerState after rendering the scene to shadow map.

 

Thank you everyone, now the problem is solved. You all are great. (the resolution used in this image for shadow map is 1024x1024 with 2049x2049 terrain.)

1911649_851963971496625_2008400309_n.jpg

Edited by newtechnology

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!