gluperspective with very large far clipping plane
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
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.
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.
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
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
You could also try increasing the number of bits used for the depth buffer. That will give you some more accuracy.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement