[osg-users] Different views hide/show different nodes

Voerman, L. l.voerman at rug.nl
Wed Apr 17 04:03:03 PDT 2019


Hi Catalin,
the normal way to do this is with nodemasks. That way the picking can use
te mask for the view you want to pick for.
Laurens.

On Wed, Apr 17, 2019 at 11:55 AM Catalin Flower <inbox.icf at gmail.com> wrote:

> Hi,
>
> I have an old application using OpengGL and I am porting it to OSG.
> I have one scene graph shared by multiple views. The problem is some views
> have some objects hidden.
>
> My solution:
>
> I have used osg::Drawable::CullCallback to hide some objects by
> implementing
> virtual bool cull(osg::NodeVisitor* nv, osg::Drawable* drawable,
> osg::RenderInfo* renderInfo) const;
>
> It works great. Is this the canonical way to hide objects with a share
> scene graph in multiple views?
>
> My next problem is picking objects. How do I pick objects in shared scene
> graph in multiple views when I use CullCallback to hide some objects(nodes)
> ? How can I make the picker behave like the rendering which used
> CullCallback ?
>
> Thank you!
>
> Cheers,
> Catalin
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75853#75853
>
>
>
>
>
> _______________________________________________
> 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/20190417/8e6cc3cd/attachment.html>


More information about the osg-users mailing list