[osg-users] ArUco (AR) with OSG
Robert Osfield
robert.osfield at gmail.com
Wed Feb 17 01:48:52 PST 2016
Hi Igor,
The description is useful. In general the OSG just passes along projection
and view matrices directly to OpenGL. However, by default the OSG computes
the near and far in the cull traversal on each frame and uses this to clamp
the projection matrices so that depth precision is maximized. The problem
can arise if you are trying to match two render passes, if they have a
different depth range then z buffer test will be erroneous so you'll get
fragment clipped or not clipped. Could this be the issue?
To disable the compute near far simple do:
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);
You can find all the settings in the include/osg/CullSettings.
Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160217/147f7359/attachment-0003.htm>
More information about the osg-users
mailing list