Hi Jannik,

You could add culling planes to the frustum during the cull traversal (see
osg::CullingStack/osg::CullingSet or osgUtil::CullVisitor), or use the
osg::ConvexPlanarOccluder support.

Going the cull traversal route will be doing something I haven't done
before but in principle you should be able write a cull cullback that gets
the current Frustum and adds the planes you want to test against.  You'd
need to restore the original Frustum planes after the traversal of the
subgraph below where you've attached the cull back.

Robert.

On 8 April 2015 at 20:58, Jannik Heller <[email protected]> wrote:

> Hi,
>
> In the osgreflect example a ClipNode is used to remove unwanted objects
> "behind" the reflection. Is there a way that in addition to clipping these
> objects, we could also cull them? Objects that are entirely behind the
> reflection obviously do not need to be rendered. From what I could tell in
> the source code OSG performs no such culling. Is there an easy way to
> achieve that?
>
> Thank you!
>
> Cheers,
> Jannik
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=63297#63297
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to