[osg-users] Gui widgets that expands on more views

Robert Osfield robert.osfield at gmail.com
Sat Aug 17 06:36:43 PDT 2019


HI Noè,

You can do an overall like this several ways.  One way is to create a
Camera (with otho projection) and subgraph to render the widgets and assign
this Camera to the GraphicsWindow and set the Camera's RenderOrder so it
get drawn last.  Another way is create another View and then have this
Camera below that.

I think the osgsequence and osgtesselate examples illustrates this type of
usage case. Do a search for Camera in the examples should illuminate other
ways Camera's are used.

To toggle on/off the widget overall simply set the Camera's NodeMask to 0x0
for switching it off, and back to 0xffffffff (or any non zero should also
do) to switch it back on again.

Robert.

On Sat, 17 Aug 2019 at 11:58, Noè Murr <noe.murr at outlook.com> wrote:

> Hi,
>
> I'm trying to resolve a complicated task.
>
> I have a Graph that will be rendered by 4 cameras in 4 different views
> using a composite viewer (see the first attachment).
>
> I want to render a 2D element that expands on all the views as you can
> see in
> the second attachment.
>
> Is there a way to do that in OpenSceneGraph?
>
> Cheers,
>      Noè Murr
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190817/9d9b449c/attachment.html>


More information about the osg-users mailing list