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

Reply via email to