Aurelien wrote:
> Hi,
>
> I've got a problem when viewing the same scene from two different viewers :
>
> - Viewer A with Camera A
> - Viewer B with Camera B
>
> I load a node with :
>
>
> Code:
> osg::ref_ptr<osg::Node> pNode = osgDB::readNodeFile("...");
>
>
>
> Then I do :
>
>
> Code:
> p_viewerA->setCamera(p_cameraA);
> p_viewerA->setSceneData(pNode);
>
> p_viewerB->setCamera(p_cameraB);
> p_viewerB->setSceneData(pNode);
>
>
>
>
> Everything works fine, but when viewer B is deleted, pNode's textures are no
> more rendered in viewer A (geometry is still rendered correctly).
>
> Is there anything special to do to share data between two viewer ?
>
> Thank you!
>
> Cheers,
> Aurelien
Well, I would look at it differently (like using slave cameras), but in this
case, have you tried dynamically linking the node?
D Glenn
------------------------
David Glenn
---------------
D Glenn 3D Computer Graphics & Media Systems.
www.dglenn.com
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44083#44083
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org