Andy Lundell wrote:
Hi,

I'm trying to set up my system so that I can manually specify the clipping 
planes.
In past projects I would use the SceneView object and the SetComputeNearFarMode method.  
This project I'm not using a SceneView (Just a "viewer") and I have no idea how 
to get at this functionality.

All the functionality is still there, you just have to follow the composition and inheritance hierarchy.

Viewer is-a ViewerBase and an osgViewer::View
osgViewer::View is-a osg::View
osg::View has-a Camera
Camera is-a CullSettings

The setComputeNearFar() method is now a part of CullSettings, so:

viewer->getCamera()->setComputeNearFar(...)


It's a long (and fairly winding) road to travel, but it makes sense once you get there :-)


(I'm also looking for a way to override the code that creates the left-eye,right-eye matrices.)

A ComputeStereoMatricesCallback in osgUtil::SceneView is probably what you're looking for. You can get to the SceneView object through osgViewer::Renderer (just a different inheritance road to travel).

--"J"

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to