Hi Ulrich,
I'm trying to find a way to attach a camera manipulator (Trackball) to my RTT
camera
rather than the main viewer. So far I couldn't find anything similar in the
examples.
This must be a frequent scenario so obviously I'm missing something. Can this
be achieved
without writing a custom handler and if so, how?
You don't attach a camera manipulator to a camera, but to an
osgViewer::View. So the trick is to tell the right camera to respond to
user input, and the other(s) not to.
camera->setAllowEventFocus(true or false);
This may only work with slave cameras, perhaps not with in-scene-graph
RTT cameras, I don't know. I've used it with slave cameras, where the
RTT camera would respond to input, and the final draw camera (which
draws a quad with the texture and shaders) would not.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sébastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.dyndns-web.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org