Hi Shuxing Xiao,

I just checked the code, and indeed the new IntersectionVisitor isn't
computing the matrix required to position and rotate the drawables
toward the intersector.  Clearly this bit of work hasn't been
completed.

This leaves the question of what the implementation should look like,
orientating a billboard towards a single line segment is straight
forward, but what about a polytope, or a plane or a group of
intersections?  I'm not sure about these later two.  The
IntersectionVisitor is by design decoupled from the actual
intersection types so doesn't directly know about the orientation.
This suggests we need to add some orientation method into the
Intersector base class.

I'm very busy with other tasks right now so can't tackle this, feel
free to have bash at implementing the orientation code.

Robert.

On 4/16/07, Shuxing Xiao <[EMAIL PROTECTED]> wrote:




I'm using osgUtil::LinesegmentIntersector to pick objects from my scene.

It works all fine except the Billboard nodes, all the objects can only be
picked at the origin point.

Since my drawables are added with a specified position, so I guess this
specified position didn't contribute to the view matrix.

I dig into the source code, and found that IntersectionVisitor treat
Billboard the same as Geode.

And I found that the old intersectvisitor considered the differences.

I wonder how to deal with this problem?

Thanks.
_______________________________________________
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