[osg-users] [forum] osgEarth
Robert Osfield
robert.osfield at gmail.com
Mon Apr 24 00:14:03 PDT 2017
On 6 April 2017 at 15:13, Latha Rani Baddala <lathabaddala.20 at gmail.com> wrote:
> I am new to osgEarth,I have doubts on osg::ClipNode.I am using osgEarth2.8 version.I am not getting that how ClipNode will establishes poistional state.And difference b/w clipnode & clip-plane.
ClipNode exists to provide a mechanism for the OSG's cull traversal to
record the modelview matrix which to apply ClipPlane associated with
that ClipNode. ClipPlanes have to applied with a specific modelview
matrix in OpenGL which is what makes it "positional state".
osg::LightSource + osg::Light work, TexGenNode and osg::TexGen in a
similar way as they both require a specific modelview matrix.
See the osgclip example to see ClipNode in action.
Robert
More information about the osg-users
mailing list