[osg-users] picture in picture...

Simon Hammett s.d.hammett at googlemail.com
Wed Nov 25 00:52:15 PST 2009


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.Tueller at 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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
http://www.ssTk.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091125/f4b76e7e/attachment.htm>


More information about the osg-users mailing list