Jump to content
  • Advertisement
Sign in to follow this  
Allan Robertson

Shadow Mapping Wobble

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

Ive been researching omnidirectional shadow mapping and have been stuck on this problem for a while. Basically the shadows seem to wobble as the camera is moved or rotated. I made a video here:

">


The problem is most visible about half way through on the gravestones at the bottom of the screen.

The project is implemented in a deferred renderer and at first i thought the problem was to do with aligning texels to pixels but i read that since directx 10 (which i'm using) this is no longer a problem. Someone also suggested that i was updating the camera after the render call so it was a frame behind but this is not the problem.

Any help would be greatly appreciated.

I didn't want to start by posting massive amounts of code. If there is anything needed i can post it. Edited by AllanRobertson7

Share this post


Link to post
Share on other sites
Advertisement

That looks as if the time at which you render the frame doesn't coincide with the time you render the shadow map.

 

Did you render the shadow map in a previous frame or update the camera settings between sm and frame rendering?

Share this post


Link to post
Share on other sites

Thanks for your reply ginkgo, the order things happen in is:

 

camera updates > create geometry buffer > draw shadow maps > draw lights > combine

 

Iv'e just double checked, the camera is definitely only updated once before any rendering code starts.

Share this post


Link to post
Share on other sites

The temporal aliasing that you get with directional lights occurs because you basically have to move your projection along with the camera, so that it can cover the are that's visible to the camera. Point lights and spot lights are localized, so typically you don't have to change the projection used for rendering the shadows unless the light itself moves. Does your point light stay in the same position in your video, or is it moving?

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!