Sign in to follow this  
Geometrian

Jumping Shadowmap

Recommended Posts

Geometrian    1810
Hi, So, I've got a nice airplane flying over water, complete with reflections and standard shadowmapping. The water is represented as a simple quad, perturbed with a normalmap. Unfortunately, as the plane flies along, particularly as it gets farther from the origin, the shadowmap begins jumping around on the ground. It's not majorly jumping, but it is significant--perhaps 25 pixels on screen every second or so. I don't know what's causing this, though I suspect it might be a precision error (the plane is 1000.0 units square, could that have something to do with it?). Has anyone run into this before, and can anyone tell me how to fix it? Thanks, -G

Share this post


Link to post
Share on other sites
dave    2187
I'm not sure what you mean by jumping, could you upload a video to Youtube or something? If the aircraft is getting further away from the shadow reciever then maybe you are seeing the symptoms of one shadow map texel mapping to many terrain pixels.

Share this post


Link to post
Share on other sites
O-san    1898
I would look into how the lights position is calculated. It's hard to tell from the video what might be wrong. I see your problem (though the water is very dark). Are you sure you are moving the light parallel to the camera? Maybe you could try and render the light's position and see if it jumps too.

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