Skip to content

Hello! When I drag the earth to a certain Angle, the picture will pass through the earth, what can I do to avoid this? Thank you! #2432

Discussion options

You must be logged in to vote

This looks like clipping caused by the OpenGL near clipping plane. You can either try reducing the distance of the near plane in your projection matrix, or you can try using the LogarithmicDepthBuffer utility:

osgEarth::Util::LogarithmicDepthBuffer logDepth;
logDepth.install(viewer.getCamera());

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luohuiiqng
Comment options

Answer selected by luohuiiqng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants