Well, I want to do it "in"
the frame.. Basically, I'm hoping to get OSG to do the scene traversal
for culling, etc, then read the znear/zfar values to be sent elsewhere
while the geometry is pushed down the pipe. I don't need perfectly
accurate znear/far, just the bounding box estimates.
Hi Randal,
it
is easy ..... somewhere in the loop, probably after the frame all you
have to do is to get the projection matrix like
while
(!viewer.done())
{
viewer.frame();
viewer.getCamera()->getProjectionMatrixAsFrustum(arguments .... )
--
trajce nikolov nick
Is there (I'm sure there is) a
way to retrieve the autocalculated ZNear
& ZFar from the scene graph on a per-frame basis? I figure it's
somewhere in a traversal structure, but I'm not exactly sure where or
how to get to it.
Can someone enlighten me?