Re: [osg-users] Retrieving Z-Near Far per-frame

2013-03-24 Thread Trajce Nikolov NICK
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  )

On Sun, Mar 24, 2013 at 4:41 AM, Randall Hand randall.h...@gmail.comwrote:

 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?
 __**_
 osg-users mailing list
 osg-users@lists.**openscenegraph.org osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.**org/listinfo.cgi/osg-users-**
 openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Retrieving Z-Near Far per-frame

2013-03-24 Thread Paul Martz
You might take a look at the osgthirdpersonview example, which draws two
views of the same scene, one of which contains a wireframe representation
of the view frustum used for the other view.


On Sat, Mar 23, 2013 at 9:41 PM, Randall Hand randall.h...@gmail.comwrote:

 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?
 __**_
 osg-users mailing list
 osg-users@lists.**openscenegraph.org osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.**org/listinfo.cgi/osg-users-**
 openscenegraph.orghttp://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
Paul Martz
Skew Matrix Software LLC
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org