[osg-users] camera standard frustum

Robert Osfield robert.osfield at gmail.com
Mon Mar 9 05:56:54 PDT 2009


On Mon, Mar 9, 2009 at 12:06 PM, Martin <grosser.martin at gmx.de> wrote:
> Hello,
>
> I think it works now. It was my mistake. But the near plane is very small. Is it normal?

By default the OSG will compute the near + far planes, during the cull
traversal, to fit the depth range of the objects in the view frustum,
so if your model is small and objects near to you then the near plane
can be quite small.  You can disable this update of the nar/far by
doing:

  camera->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);

Robert.



More information about the osg-users mailing list