alessandro terenzi schrieb:
Again thank you very much, I implemented as you suggested and it works fine...
Nice!
Now I have problems when picking the text that is "really" under the mouse cursor after having moved the point of view (by a trackball manipulator) ... the picker returns the text above or below the intended menu item...may depends on bounding boxes and their update?
No. This was only a guess of mine, but is only relevant if you create your own geometries.
If this is the case, should I call dirtyBound() method? Considering that the point of view is often moving, where is the most appropriate place to call it?
I don“t know which pick-visitor you are using now. In some way or another the pick visitor will have to "know" the view and projection matrix of the current view.

Are you using an osg::Viewer? Are you following on the line of the osgPick-example? Or are you doing things differently? I, for instance, use a GUI and have an OpenGL window within, so I have to take care to update the pick-visitor (in fact, I use a new one each time) every time the projection changes.

Maybe you could post your picking-code, or an excerpt of it.
By the way, concerning the original problem relating to intersectors and geometry object, it looks like that with Text object, intersections are found even if you click on the text and not on the vertex of its bounding box.
Usually all intersections are found, though there were rare circumstances where I had problems with picking, too. I might open another thread for this.

Regards,

Andreas
Thanks.
Alessandro


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

Reply via email to