Thanks Farshid, that explains it all.
Farshid Lashkari wrote:
Hi Fred,
OSG does compute the correct near/far values for pre-render cameras, assuming
it is enabled for it.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=54463#54463
Robert,
Sorry to further fill in this thread with a question - but couldn't it be that
the OSG indeed correctly calculates the near/far values for my pre_render
camera, and that I simply just do not know (yet) a proper way to correctly
retrieve the projection matrix? I see the CullVisitor
Hi Fred,
OSG does compute the correct near/far values for pre-render cameras,
assuming it is enabled for it. As you can tell, the main problem is getting
access to the computed projection matrix. What I have done to get the
computed near/far values from camera nodes is to attach a cull callback
Hi Fred,
The OSG by default automatically computes the near/far values during
the cull traversal so you don't normally need to worry about the
specific settings of near/far. The 1.0 and 1.0 are simply default
values and are of no particular note. The osg::Camera inherits from
Hi Robert,
Both my master and slave cameras have matching cull settings, set to
COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES. Somehow though, this doesn't work when
my scene is under the slave camera.
My bounding box is defined as a callback on the unique leaf drawable node I
have in my graph. Z
There might be one wrong thing.
When creating the slave camera, I set it up as a child of my master camera.
Should I used osg::View::addSlave(Camera) instead, and leave my master camera's
scene graph empty?
Sorry if this question has been answered before I am all mixed up with regards
to the
6 matches
Mail list logo