Hi Eric,

I have done some work on picking, and got things working better with
the Viewer and CompositeViewer, but alas I'm still running catching up
so haven't ported this code to SimpleViewer or test out you mods.

W.r.t text not picking between the characters, well I'm afraid this is
down the fact that the picking code uses the quads that the text is
built from (toggle of texturing and you'll see these).  The picking
and the text geometry reporting code are completely decoupled,
deliberately so, as this makes both more flexible and reusable.  There
is no way to tell the picking code or osgText to report the overall
bounding box, and I feel it inappropriate to add  such code for such
application specific needs, especially when it can be easily worked
around - just add a quad background that is masked out for the cull
traversal, but masked in for the picking traversal.

Robert.

On 1/16/07, E. Wing <[EMAIL PROTECTED]> wrote:
Hi Robert,
I was wondering if you made any progress with this. I tried
yesterday's with my ProjectionNode addition to the
osgkeyboardmouse.cpp I sent you, but it still doesn't work.

Also, I noticed that the hit detection (without the projection node)
feels a little imprecise. If I run against the cessna.osg model and I
try clicking on corner or small regions (propeller, wing edge), the
model doesn't seem to pick.

Finally, since I'm here, I was wondering what you could recommend for
better text picking. The hit detection is 'too good' for osgtext in
that each letter is hittable but the spaces between letters will miss.
I would like to hit against the overall osgtext rectangle box, not
per-letter. I don't want to draw my own separate box outside of
osgtext because I think this is what I essentially did for outline
text and it breaks down with autotransform and funny projection
dimensions.

Thanks,
Eric
_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
osg-users@openscenegraph.net
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to