Re: [osg-users] inactivate the camera manipulator

2010-01-19 Thread Nemo Ulysse
Thank you I resolve the problem using:

  m_Viewer-getCamera()-setViewMatrixAsLookAt(eye, centre, up);

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22896#22896





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] inactivate the camera manipulator

2010-01-15 Thread Nemo Ulysse
hello

I set up the TrackballManipulator to move the camera with the mouse but I would 
like to active and inactive the manipulator.
It is probably very simple but I can’t find who to inactivate the 
TrackballManipulator.

Thank you

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22726#22726





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] inactivate the camera manipulator

2010-01-15 Thread Trajce Nikolov
one way is thru an EventHandler that will enable/disable the camera
manipulator by keyboard for example, simply
viewer-setCameraManipulator(0)/setCameraManipulator(new
TrackballManipulator)


Nick

http://www.linkedin.com/in/tnick
Sent from Devlet, Ankara, Turkey

On Fri, Jan 15, 2010 at 9:00 PM, Nemo Ulysse ulysse.vau...@gmail.comwrote:

 hello

 I set up the TrackballManipulator to move the camera with the mouse but I
 would like to active and inactive the manipulator.
 It is probably very simple but I can’t find who to inactivate the
 TrackballManipulator.

 Thank you

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=22726#22726





 ___
 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


Re: [osg-users] inactivate the camera manipulator

2010-01-15 Thread Nemo Ulysse
When I do that it deletes all possibility to manipulate the camera.
 I want to be able to manipulate the camera in code and remove the control for 
the user.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22734#22734





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] inactivate the camera manipulator

2010-01-15 Thread Trajce Nikolov
you can control the camera by setting the view matrix without manipulator
Nick

http://www.linkedin.com/in/tnick
Sent from Ünalan, İstanbul, Turkey

On Fri, Jan 15, 2010 at 10:49 PM, Nemo Ulysse ulysse.vau...@gmail.comwrote:

 When I do that it deletes all possibility to manipulate the camera.
  I want to be able to manipulate the camera in code and remove the control
 for the user.

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=22734#22734





 ___
 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