Sign in to follow this  

shadow mapping problem on large terrain

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

hello, i have two problems with my shadow mapping technique implemented on a large terrain : an image can be found here : http://www.flickr.com/photos/44541011@N06/4092454962/ the first problem : as u can see the top of the montain is not shadowed correctly? how can i eliminate this ? the second question is: i tried to setup the light to look always at the viewer position like this : gluLookAt((float)light_pos.X,(float)light_pos.Y,(float)light_pos.Z,CameraPOS.X,CameraPOS.Y,CameraPOS.Z,0,0,1); and i setup an ortho projection for the light projejection glOrtho(-bb.x,bb.x,-bby,bby,CameraPOS.length()-500.0f,CameraPOS.length()+500.0f); but the problem that is that with this configurations, when the viewer moves u will see the shadow moved, i think this is not the best way for shadow mapping on large terrain bcoz there is a lot of problems that appears , so can someone suggest me any improvements for my method ?

Share this post


Link to post
Share on other sites

This topic is 2958 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.

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