Sign in to follow this  

gluperspective with very large far clipping plane

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

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