Jump to content
  • Advertisement
Sign in to follow this  
budipro

terrain scaling

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

Hi all, I have a question, if my terrain scale is 1 unit = 100 meters, then how to make my camera close enough to the terrain? Is it okay to set the PerspectiveFOVLh near plane with a value below 1.0? Cause if the value is 1.0, then the camera can not go any closer than 100 meters above the terrain. Am I right? Thanks for your attention.

Share this post


Link to post
Share on other sites
Advertisement
What's important is the ratio between the far and near clip planes. So if you set your far clip plane to 10, and your near clip plane to 0.015, this should still be reasonably ok.. At those settings and your scaling, you'll be seeing from 1.5 meters to 1 km, which is quite good, and it still allows you place the camera at eye level (approx. 1.6-1.9 meters). Although you should still paly around with the settings to see what gives you the optimum results.

Share this post


Link to post
Share on other sites
Quote:
Original post by budipro
Is it okay to set the PerspectiveFOVLh near plane with a value below 1.0?


The distance to the near plane can be be any number greater than 0 and there is nothing special about a distance of 1. However, the distance to the near plane affects Z-buffer precision, so you generally want it to be as high as possible (in relative terms).

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.

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!