On Sat, 29 May 1999 00:00:51 -0700, Jon Barrilleaux wrote:

>I'm performing continuous picking (using my own pick code) as the
>mouse moves.  The scene consists of a plane (a Sun utility Box) that
>is parallel to and fills the display.  Every so often (10 - 100 mouse
>move events) the Shape3D.intersect() returns a "no hit".  I don't see
>how this can be since, as I said, the plane completely fills the
>display.
>
>Has anyone else noticed this?  Is this a bug?
>
>--jon 
>____________________ Peculiar Technologies ____________________
>Jon Barrilleaux       3800 Lake Shore Ave.         Purveyors of
>[EMAIL PROTECTED]        Oakland, CA 94610      Alternate Reality
>510.444.4370 voc                           Augmented Simulation
>510.444.0231 fax        www.augsim.com         and 3D Solutions
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Hi Jon,

I'm also working working on continuous picking using mouse drag events. I'm using the 
intersect() method which also provides the distance to the picked geometry. 
For example, if the are multiple pickable shapes, IMHO, picking works as follows: 
first 
all bounding boxes will be checked  if they intersect with the pickray. Second, all 
selected bounding boxes will be checked if their included geomtry is really hitten by 
the pickray. If not, distance is not valid and intersect() returns false.
So one has to select the closest distance of all hitten geometries.

Gernot 
 

[EMAIL PROTECTED]

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to