<div dir="ltr"><div><div><br>Hi Jannik,<br><br></div>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.<br><br></div><div>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.<br></div><div><br></div>Robert.<br><div><div class="gmail_extra"><br><div class="gmail_quote">On 8 April 2015 at 20:58, Jannik Heller <span dir="ltr"><<a href="mailto:scrawl@baseoftrash.de" target="_blank">scrawl@baseoftrash.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
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?<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Jannik<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=63297#63297" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=63297#63297</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div></div></div>