On Wed, 22 Apr 2020 at 11:10, OpenSceneGraph Users <
osg-users@lists.openscenegraph.org> wrote:

> Worth pointing out that if you don’t want any camera manipulator, you can
> just call setCameraManipulator(NULL) on each of the Viewer’s views:
>
> Views views;
>     pViewer->getViews(views);
>     *for *(Views::iterator it = views.begin(); it != views.end(); it++) {
>         (*it)->setCameraManipulator(NULL);
>     }
>

The default TrackballManipulator is only added by the Viewer::run() method
when there are no other means for setting the view matrix, so if you don't
use the Viewer::run() convenience method and instead roll hour own frame
loop then you won't get the fallback TrackballManipulator being added.

To replace the viewer::run() usage all you have to do is:

  viewer.realize();
  while (!viewer.done())
  {
       viewer.frame();
  }

You can also break the viewer.frame() down into it's constituent parts.
Have a look at the Viewer::run(), frame() methods to demystify what's
happen in these convenience methods.

Cheers,
Robert

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.85883.1587552560.7168.osg-users-openscenegraph.org%40lists.openscenegraph.org.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osg-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.85883.1587552560.7168.osg-users-openscenegraph.org%40lists.openscenegraph.org.

Reply via email to