Antoine Rennuit schrieb:
Hello all,
I have just tried picking using a PickVisitor, which I believe is the
dedicated way to do so. When I load an osg file (the cow.osg from the
examples) I manage to have it work, but when I draw something hard coded "by
hand" (e.g. several rough segments) I don't manage to pick it. So here is my
main question : do you need to specify something special to make an object
pickable? Furthermore when I zoom out a lot and my cow begins to be very
small (3 or 4 pixels wide), then I don't manage to pick it anymore, any
idea? And last: is it possible to change the size of the picking window (I
believe it is very small by default, something like 1 or 2 pixels wide)?
Hello,
picking works with bounding-boxes, so it might be that you have to call
dirtyBound() to your hard-coded segments.
As for widening the focus: You will probably have to use more than one
segment for picking, but I think that someone here is doing some work on
a pick-rectangle, read the older posts!
Regards,
Andreas
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/