Robert, Thanks for the input.
The state between cameras is markedly different so I need something like a context switch to accomplish what I need. How do you add and remove cameras? That sounds like something that might fit my purposes. Also is stopping the threading controlled at the viewer level or is it controlled for each view (for composite viewer). -Shayne -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Robert Osfield Sent: Friday, May 15, 2009 12:49 PM To: OpenSceneGraph Users Subject: Re: [osg-users] camera switching on a given view... Hi Shayne, You won't be able to just swap cameras as the threading and associated renderer objects will all be assign to certain windows. To swap them you'll need to stop threading. Rather than swap camera's I would have though the swap the manipulators or just reset the reviews so your just get a different view. If this isn't appropriate then adding a new camera and removing the old camera, whilst maintaining the same settings might work better. Robert. On Fri, May 15, 2009 at 5:59 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC <[email protected]> wrote: > All, > > > > I have a question regarding camera switching in a particular view. I'm > currently using the composite viewer where each view is set up in a separate > window (via the call to view->setUpViewInWindow()). For a particular > view(window), I need to swap from one camera to another upon request. > Perusing through the examples and archives, I was unable to find any > information on how I would accomplish this. I tried using view->setCamera() > to swap out the current camera with another but this killed the view window. > > > > Can something like this be done or is it beyond the scope of the viewer > paradigm? > > > > Thanks for any help. > > > > -Shayne > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

