Bob Youmans wrote:
My questions are currently:
1. What’s the best way to connect the two cameras so they’re
the same position & orientation, only rendering to different targets
(e.g., update the matrix of one with the other using an update
traversal, put both under a transform node in a tree, etc.)?
This sounds like a plain old osgViewer::Viewer with a slave camera is
the way to go. You control the viewpoint with the master camera, and
both cameras render wherever you need them. I think the osgsidebyside
example may give you an idea how to set this up (it's not exactly what
you're looking for, but a lot of the code is relevant). osgprerender
might also be relevant.
2. What’s the best way to programmatically (vs
TrackBallManipulator default) control the camera, and/or switch
between these methods?
The most straightforward way to do this is with an UpdateCallback. I
think Paul Martz's OSG Quick Start Guide explains this pretty well.
--"J"
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org