Hi Andrew,

You don't need to add a camera manipulator as an event handler, as the
viewer will automatically call the manipulator on each frame.

I also wouldn't recommend using GLUT, the OSG has far more powerful
windowing support out of the box, no need to go complicating things
with an ancient windowing API that was never meant for anything more
than quick OpenGL demos.

Robert.

On 9 November 2011 04:47, Andrew Inscore <andrew.insc...@gmail.com> wrote:
> If I attempt to use the UFOManipulator  like so, it does not move the camera.
>
> osg::ref_ptr<osgViewer::Viewer> viewer = new osgViewer::Viewer;
> osgGA::UFOManipulator *fm = new osgGA::UFOManipulator();
> fm->setHomePosition(osg::Vec3d(0,100,0),osg::Vec3d(0,0,0),osg::Vec3d(0,0,1),false);
> viewer->setCameraManipulator(fm);
> viewer->addEventHandler(fm);
>
>
> FlightManipulator works fine.  I am using GLUT windowing, so this code
> is slightly different than my own.  Other keyboard event handlers work
> fine(I turn them off when I try out UFOManipulator, so events are not
> captured).  Anyone have any experience or examples using
> UFOManipulator?  I am using version 3.0.1.
>
> Thanks!
> Andrew
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=43787#43787
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to