Was this fixed here and will a CVS update make the problem go away?
http://openscenegraph.org/archiver/osg-users/2006-April/0035.html
Joe

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Friday, June 16, 2006 6:11 AM
To: osg users
Subject: Re: [osg-users] Can I add a camera this way?

Hi Donn,

I'm afraid this Don Burns area of experitise, he's away for a couple
more weeks so I'll have stab.

For of all I'd recommend setting up the camera config up front like
the osgwindows example does, then running viewer.realize().  This
certainly works so if you follow this route then things are likely to
work just fine.

Robert.

On 6/16/06, Mielcarek, Donn <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I'm trying to add a camera to a viewer using
>  this code.  The camera works, but if I press
>  's' for statistics, the application locks up.
>  Is this a legit way to add a second camera?
>
>      Producer::Camera *followerCamera;
>      Producer::Camera *mainCamera = viewer.getCamera(0);
>      Producer::CameraConfig *cameraConfig = viewer.getCameraConfig();
>
>      mainCamera->setShareLens(false);
>      followerCamera = new Producer::Camera();
>      followerCamera->setShareLens(false);
>      followerCamera->getLens()->setAutoAspect(true);
>      followerCamera->setRenderSurface(
> mainCamera->getRenderSurface());
>      followerCamera->setSceneHandler(
> mainCamera->getSceneHandler());
>
> cameraConfig->addCamera("followerCamera",followerCamera);
>
>
>  Donn M
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to