I met the same problem with Java3D 1.2.
I've solved the problem using the pickCanvas.
If it can be useful, i've attached my class that allow to pick the first
face that compose a dodecahedron (my dodecahedron is made using a group of
shape3d where each geometry is obtained from a GeometryInfo structure based
on a Triangle_Fan_Array).
However, a good example is the "IntersectTest" class located into the
PickTest directory (an example of Java3d 1.2).

----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 1:16 PM
Subject: [JAVA3D] New picking semantics in 1.2


After upgrading to 1.2 I got deprecation messages about my picking code, and
decided to change it to comply with the newest API.  I used pickClosest
before, and since there's a method with the same name, expected it to work
the same way (i.e. - get a reference to the first node in the scene graph
intersected by the pick ray), like the documentation seems to state.

It seems that pickClosest actually sorts the intersected objects backwards,
meaning it is actually "pickFarthest".  Can anyone verify?  If so, is there
a workaround?

Daniel

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".


After upgrading to 1.2 I got deprecation messages about my picking code, and
decided to change it to comply with the newest API.  I used pickClosest
before, and since there's a method with the same name, expected it to work
the same way (i.e. - get a reference to the first node in the scene graph
intersected by the pick ray), like the documentation seems to state.

It seems that pickClosest actually sorts the intersected objects backwards,
meaning it is actually "pickFarthest".  Can anyone verify?  If so, is there
a workaround?

Daniel

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

PickDragBehavior.java

Reply via email to