Re: [osg-users] How to handle camera by keyboard

2010-12-12 Thread Axel Spirtaat
Hi Robert, Thanks for the advice, you have been enlightening. I was focusing too much on details. now I'll try to implement a subclass of MatrixManipulator. Best regards, Axel -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34734#34734

[osg-users] How to handle camera by keyboard

2010-12-11 Thread Axel Spirtaat
Hi, I've created my scene, and now I need to move camera in it, using keyboard. My idea is to handle camera using some key lik A, S, W, D to perform tranlations mouse movements to perform camera's rotations. I know i need to write a new class that inherits from GUIEventHandler, but reading

Re: [osg-users] How to handle camera by keyboard

2010-12-11 Thread Robert Osfield
Hi Axel, You could use two routes, to subclass from osgGA::CameraManipuilator (was named MatrixManipulator in 2.8.x) as per TrackballlManipulator/DriverManipulataor/etc, or have your own event handler set the View(er)'s Camera's ViewMatrix directly and not use a CameraManipulator. If you go the