I haven't done picking but quoting from page 259 of 'The Java 3D API
Specification' latest edition:
"Java 3D includes helping functions that aid in intersecting various
geometric objects with objects in the virtual universe by intersecting an
oriented ray with all the objects in the virtual universe. That function can
return the first object intersected along the ray, all the objects that
intersect that ray, or a list of all the objects along that ray sorted by
distance from the ray's origin"
Dont know if this help but good luck.
Myron
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Epelman Boris
Sent: Thursday, September 07, 2000 8:19 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Reverse Picking
Hello!
Does anybody has a clue?
It is urgent, please respond!
Boris
On Wed, 6 Sep 2000, Epelman Boris wrote:
> Hello everybody!
>
> I use the following code to pick objects in the scene:
>
> pickCanvas.setShapeLocation(xpos,ypos);
> PickResult pr = pickCanvas.pickClosest();
> if(pr != null)
> shape = (Shape3D) pr.getNode(PickResult.SHAPE3D);
>
> For some reason, if I put some objects one after another in Z
> direction and pick them, the object that is picked is not
> the closest to me, as one whould expect, but the farthest, the
> last in Z direction.
>
> Any ideas?
>
> Thanks for your help
>
> Boris Epelman.
>
>
===========================================================================
> 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".
>
===========================================================================
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".
===========================================================================
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".