Hi David,

The IntersectVisitor doesn't know about OpenGL state, just geometry,
so it won't directly know about clip planes.  What you could use is a
post process on the hitlist so that hits related to the clipped
subgraph from being accepted if the position is outside the box.

Robert.

On 6/10/06, David Johansson <[EMAIL PROTECTED]> wrote:
Hi everyone,
I have a ClipNode inside a box, to prevent whatever is in it to show
outside the box.
This works great, but... It doesnt seem that the IntersectVisitior
takes this in consideration. As it, if the object is bigger than the
box, the IntersectVisitor hits the Object outside the box (the object
is'nt visible outside the box).

Is there a way to make it work the way (atleast as i feel) it should?
i.e, IntersectVisitor does'nt hit object or a part of an object thats
been "removed" with clipNode.

-David
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to