Hi Andy,

One could adapt LineSegmentIntersector and IntersectionVisitor to take
account of ClipNodes and Scissor tests, but would require tracking of
state and clipping the intersector against the Scissor or ClipPlane
(stored at the ClipPane).  In the case of a Scissor test this could be
treated as just a reduction in size of the viewport perhaps at the top
level prior to intersection traversal, ClipPlane's being position
state would be a more convoluted as you'd need to find the clip planes
in the scene graph to find their position in space, then do the
intersection traversal using the clip planes that are enabled.

Robert.

On 24 April 2012 14:42, Andy Skinner <[email protected]> wrote:
> Should we expect the picking Intersectors to look at the clipping planes set
> up by ClipNodes and Scissors?  We can clip the results, but it seems like
> the sort of thing the Intersectors would be good at.
>
>
>
> Basically, we’ve been getting points picked that should have been clipped by
> a clip box.  They’re clipped when drawing—is there a way to clip when
> finding intersections?
>
>
>
> thanks,
>
> andy
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to