[osg-users] ...framing only visible objects

Peter Gebauer peter.gebauer at stockholm.bostream.se
Tue Jul 31 09:13:25 PDT 2007


Hello!

The "spacebar event" is simply setting the camera to the camera 
manipulator's home position. It does not modify your scenegraph, although it 
might appear that way. The home position is either calculated (default) or 
set using an eye and center coordinate along with the definition of up.

See osgGA::MatrixManipulator and osgViewer::Viewer for more info.

/Peter

On 2007-07-31 (Tue) 17:08, alessandro terenzi wrote:
> Hello,
> using osgViewer, I see that pressing the spacebar the view is restored in
> order tor frame all the objects in the scene... I also noticed that it
> adjusts the camera in order to consider also objects that are not visible...
> how can I change this behaviour in order to frame just visible objects?
> Where can I have a look in osg code to understand how the 'spacebar' event
> is handled?
> 
> Thank you. Best regards.
> Alessandro

> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list