HI Catalin,
OpenGL clip planes are positional state which requires them to be applied
with the current modelview matrix to position them in in eye coordinates
where the clipping is done on the GPU. This positioning means that each
individual OpenGL clip plan can only be in one place at one time,
It seems there is a bug with osg::ClipNode, by using osg::ClipPlane it
fixes the issue.
OSG 3.6.3
On Wed, 23 Oct 2019 at 13:48, Catalin wrote:
> Hi,
>
> I have an issue with clipping planes, if you set 2 different clipping
> planes to 2 different objects, only the last clipping plane is used.
Hi,
I have an issue with clipping planes, if you set 2 different clipping
planes to 2 different objects, only the last clipping plane is used. I was
expecting each object to be drawn with its clipping plane.
osg::ref_ptr clipNode1 = new osg::ClipNode;
clipNode1->addClipPlane(new osg::ClipPlane(0)
3 matches
Mail list logo