Hi Michele, Whether you need to redraw the scene that is static can be reduced to just checking the view and projection matrices of the master camera/slave cameras that the view has active. The easiest way would be break frame into its constituent parts and then just call Viewer::renderingTraversals() when required. I wouldn't recommend just fixating on the TrackballManipulator as this is something you can easily want to change later on, checking the view and projection matrices is the generic way to do things.
Robert. On Jan 2, 2008 2:58 PM, Michele Bosi <[EMAIL PROTECTED]> wrote: > Hello, > I have a static scene that my program visualizes using a trackball > manipulator. I would like to update the rendering only when the camera > moves, that is the user moves it with the mouse or the camera is > spinning around. I am using a Qt wrapper so I know how to stop the > refresh by simply stopping the QTimer in there, and I also know how to > update upon user interaction since Qt gives very nice messages, what I > don't know is: how can I know if the trackball manipulator is making > my camera spinning around or not? > Maybe osgGA::TrackballManipulator::getRotation() encodes in some way > the rotation velocity? or it's just the current rotation of the > camera? > > Thanks, > Michele > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

