Hi Tom,

One wouldn't normally change the viewer's master Camera while the
viewer is running, if you do this you'll been to stop all threading,
assin an Renderer and the get the viewer to rewire the threading.

In you case I would just take the subgraph below your own Camera and
then attach this and then copy whatever settings you want across.

Robert.

On Mon, Sep 6, 2010 at 9:05 PM, Tom Pearce <[email protected]> wrote:
> Hey everyone,
>
> I'm having trouble using osgViewer::Viewer::setCamera(osg::Camera*) method 
> (inherited from osg::View).  I'm sure the problem is me and not with the 
> function. :-*
>
> Here's the scenario: I have an already-realized viewer window with an empty 
> scene, to which I am trying to add a new scene with a Camera node as the 
> root.  If I use setSceneData(osg::Node*) the scene appears in the window 
> correctly, but osg::ComputeWorldToLocal doesn't ignore the camera that was 
> the root of my graph.  I thought using setCamera instead would do the trick - 
> avoiding the 'myCameraNode' is a child of the real root camera problem - but 
> the window simply disappears.  Is this enough info that anyone would be able 
> to point me at what I am doing wrong?
>
> Thanks for any hints,
> Tom
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=31355#31355
>
>
>
>
>
> _______________________________________________
> 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