Hi ben,<br><br>where did you put your code? I put them in the updatecallback function, that's why mine will change every frame.<br><br>Yun<br><br><div class="gmail_quote">2009/3/20 Ben <span dir="ltr"><<a href="mailto:ben.poulard@gmail.com">ben.poulard@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
benbao wrote:<br>
> I try to use nodemask but doesn't work.<br>
> Id do this :<br>
> Code:<br>
><br>
> osgViewer::CompositeViewer viewer;<br>
> osgViewer::GraphicsWindowEmbedded* gw = new osgViewer::GraphicsWindowEmbedded;<br>
><br>
> osgViewer::View* vue2D = new osgViewer::View;<br>
> osgViewer::View* vue3D = new osgViewer::View;<br>
> viewer.addView(vue2D);<br>
> viewer.addView(vue3D);<br>
><br>
> vue2D->getCamera()->setGraphicsContext(gw );<br>
> vue2D->getCamera()->setProjectionMatrixAsPerspective(30.0f, width()/(double) height(), 1.0, 1000.0);<br>
> vue2D->getCamera()->setViewport(new osg::Viewport(0,0,width(),height() ));<br>
> vue2D->setCameraManipulator(new osgGA::TrackballManipulator);<br>
><br>
><br>
> vue3D->getCamera()->setGraphicsContext(gw );<br>
> vue3D->getCamera()->setProjectionMatrixAsPerspective(30.0f, width()/(double) height(), 1.0, 1000.0);<br>
> vue3D->getCamera()->setViewport(new osg::Viewport(0,0,width(),height() ));<br>
> vue3D->setCameraManipulator(new osgGA::TrackballManipulator);<br>
><br>
><br>
><br>
> Code:<br>
><br>
> // to switch vue3D OFF and vue2D on<br>
> vue2D->getCamera()->setNodeMask(0XFFFFFFFF);<br>
> vue3D->getCamera()->setNodeMask(0);<br>
><br>
><br>
><br>
<br>
<br>
</div>sorry it's work, but only the view on top is updated by mouse manipulator.<br>
<div class="im"><br>
------------------<br>
Read this topic online here:<br>
</div><a href="http://forum.openscenegraph.org/viewtopic.php?p=8854#8854" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=8854#8854</a><br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Yun<br>