Jump to content
  • Advertisement
Sign in to follow this  
Piranjah

gluperspective with very large far clipping plane

This topic is 4287 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, I'm having some trouble with the depth testing I guess, I'm trying to make a zoomable map (cfr google earth). So in order to do this I want a very large far clipping plane, At the moment it's "10000". Problem is, when I zoom out a certain distance, some items start *flashing* as if something goes wrong with the depth testing:s. It kinda looks like certain items with close proximity start showing artefacts of each other when zooming away:-s Don't know if this explains my problem, but help would be appreciated. Pascal

Share this post


Link to post
Share on other sites
Advertisement
Very far away clipping planes should be no problem. You can even have one at infinity without trouble.

But the near clipping plane has a very big influence on precision. You should always place it as far as possible. Especially for an application like this it's important to place it correctly. You might even have to adjust it dynamically based on the zoom factor.

Share this post


Link to post
Share on other sites
Hi,

The Z-fighting is exactly the kind of artefacting I was looking at.
I did kinda solve it (for now) by placing the near clipping plane a bit further away, guess I have to change it while zooming. Anyway, this solves my problem, I thought the far clipping plane was affecting my scene:-)

Thx for the help!

Pascal

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!