Clipping distance #1904
-
Hi Community! I am in a particular case where I need to desactive the depth test. My question is simply : Is it possible to define a clip distance where all bounding spheres over this distance would be automatically culled ? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
JD, For your camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
camera->setProjectionMatrixAsPerspective(vfov, aspect_ratio, near_clip, far_clip); Hope this helps. |
Beta Was this translation helpful? Give feedback.
JD,
Normally the camera is set up to automatically compute a far clipping plane based on the visible geometry. But you can change that and force it to a value.
For your
osg::Camera
you can say something likeHope this helps.