Hi Paul,

When you do a mouse pick, you generally are trying to pick an object that
falls into a small screen-space box around the cursor. In a perspective
view, the box has smaller world-space extents at the near plane, and larger
world-space extents at the far plane. In essence, it looks like a view
frustum. PolytopeIntersector is the only intersector that accurately
represents this pick volume.

Yes, but this is only a problem if the user clicks on the pixels at the edge of the object (or the limit case, if the object occupies only one pixel on screen). The chances that the user will click just at the edge of the object and the ray will miss are really small. Generally the object is big enough on screen (even if the object occupies 5x5 pixels I'd be surprised to see a user click on the edge, most of the time they'll click in the middle).

Every developer is free to make the choices they want. I consider this case much too infrequent, and it has not been a problem for us. I have not had one user tell me "hey, I should have selected the object then but I didn't".

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to