Allen, Have you tried just setting the camera manipulator for each camera?
Something like: Ownship1.view->setCameraManipulator(new osgGA::TrackballManipulator); Ownship2.view->setCameraManipulator(new osgGA::TrackballManipulator); If you don't want to use the manipulators, you can certainly set the view matrix for each camera by Ownship1.view->getCamera()->setViewMatrix(vm1); Ownship2.view->getCamera()->setViewMatrix(vm2); or Ownship1.view->getCamera()->setViewMatrixAsLookAt(eye1, center1, up1); Ownship2.view->getCamera()->setViewMatrixAsLookAt(eye2, center2, up2); Regards, -Shayne -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Allen Saucier Sent: Thursday, May 07, 2009 4:21 PM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] switch between two camera Hi all, After reading this thread, i think i'm in the right place. Please let me know if I'm not w/my question. I've got one scene, two graphics windows each with a different camera and I want to be able to manipulate the camera in each window separately. Right now, when I move one camera w/the trackball manipulator, the other camera in the separate window moves to match exactly. Would y'all mind pointing me in the right direction to be able to have two "views" into a single scene and be able independently control the cameras in each? OH and Robert, would you please direct me to "The Archives?" I really need to have that info on the diff between: Graphics Context, View, Viewer, Camera, Scene. Thank you very much! Robert Osfield wrote: > > ***Peter Amstutz wrote:*** I'm still fuzzy on the relationship between > Graphics Context, View, Viewer, Camera, Scene -- there's at least a couple > layers of abstraction there. Especially when I see inheritance graphs like > this > (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01055.html > > (http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a01055.html)) > > *** > > I've written plenty on the topic on the osg-users lists over the last two > years. Go have a look through the archives. The concepts, language and > class structure tie up neatly, but it is different to that OSG-1.x or libs > like Performer used. > > Robert. > > ------------------ > Post generated by Mail2Forum :) ------------------------ Allen ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=11658#11658 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org