[osg-users] Culling with custom clip planes

Robert Osfield robert.osfield at gmail.com
Thu Apr 9 03:36:20 PDT 2015


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 <scrawl at baseoftrash.de> 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
> 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/20150409/4c370a72/attachment-0003.htm>


More information about the osg-users mailing list