Jump to content
  • Advertisement
Sign in to follow this  
casper sky

shadow mapping problem on large terrain

This topic is 3170 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
Advertisement
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!