Re: [osg-users] picture in picture...
Views get rendered in order added. (at least in single threaded mode) Just add your 'in picture' viewport last, where you want it. You will need to turn off clearing of the colour buffer if you want to see your main scene through the picture . And maybe call setAllowEventFocus(false); on the views camera to prevent it nicking mouse keyboard events. 2009/11/24 Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC shayne.tuel...@hill.af.mil All, This is probably a silly question but what’s the best way to do a “picture in picture” using CompositeViewer? Right now I have multiple views added to my viewer and I want to have control as to which one gets rendered on top of the others in the main viewer window… Thanx, -Shayne ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- http://www.ssTk.co.uk ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] picture in picture...
Hi Shayne, On Tue, Nov 24, 2009 at 11:31 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC shayne.tuel...@hill.af.mil wrote: This is probably a silly question but what’s the best way to do a “picture in picture” using CompositeViewer? Right now I have multiple views added to my viewer and I want to have control as to which one gets rendered on top of the others in the main viewer window… This is the right way to tackle it. To control the rendering order you can use the camera-setRenderOrder(..) method. If you don't set this an leave all the camera's at their default of 0 then these cameras will be rendered in the order you added them. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] picture in picture...
Robert and Simon, Thanks! That did the trick...:) -Shayne -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Wednesday, November 25, 2009 3:26 AM To: OpenSceneGraph Users Subject: Re: [osg-users] picture in picture... Hi Shayne, On Tue, Nov 24, 2009 at 11:31 PM, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC shayne.tuel...@hill.af.mil wrote: This is probably a silly question but what's the best way to do a picture in picture using CompositeViewer? Right now I have multiple views added to my viewer and I want to have control as to which one gets rendered on top of the others in the main viewer window. This is the right way to tackle it. To control the rendering order you can use the camera-setRenderOrder(..) method. If you don't set this an leave all the camera's at their default of 0 then these cameras will be rendered in the order you added them. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] picture in picture...
All, This is probably a silly question but what's the best way to do a picture in picture using CompositeViewer? Right now I have multiple views added to my viewer and I want to have control as to which one gets rendered on top of the others in the main viewer window. Thanx, -Shayne smime.p7s Description: S/MIME cryptographic signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org