ClipPlane is what's known as "positional state" in OSG, and the plane equation is a StateAttribute that is in effect for your entire RenderStage. You enable or disable it on a per-node basis just like any other state: node->getOrCreateStateSet()->setMode( GL_CLIP_PLANEn, osg::StateAttribute::ON|OFF );
...where n is the ClipPlane number. This all seems very familiar. I believe this was discussed just recently in this list; check the archives for the past couple weeks. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com +1 303 859 9466 -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Paul Griffiths Sent: Saturday, May 23, 2009 11:02 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Single-sided ClipPlane? How do you disable a clipPlane? osg::ClipPlane plane = this->clipNode->getClipPlane(2); ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12833#12833 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org