Re: [osg-users] More than one ClipNode and ClipPlane

2011-03-02 Thread Andrea Martini
Hi Robert, following your suggestions, i solved my doubts. This is the correct code: ... // cylinder : osg::ClipNode* cnCylinder=new osg::ClipNode(); cnCylinder->addChild(cylinderModel); groupCylynder->addChild(cnCylinder); clipPlaneForCylinder=new osg::ClipPlane(); planeForCylinder=new osg

Re: [osg-users] More than one ClipNode and ClipPlane

2011-03-01 Thread Robert Osfield
Hi Andrea, Positional state like clip planes are handled in a special way by the OSG as they have to be assigned a particular modelview matrix to position them correctly, and this means that you can't arbitarily state sort them and have any modelview matrix current when they are applied. The solv