Hi Jim,
We worked closely with Pavel to ensure 3D picking did extend nicely. I
believe the specification at this link is still up-to-date:
https://wiki.openjdk.java.net/display/OpenJFX/Picking3dAPI
- Chien
On 8/5/2013 3:44 AM, Pavel Safrata wrote:
On 1.8.2013 22:33, Richard Bair wrote:
How does that fit in with the 2D-ish picking events we deliver now?
If a cylinder is picked, how do we describe which part of the
cylinder was picked?
Pavel or Chien will have to pipe in on this part of the question, I
don't know.
Similar to 2D, the delivered event has coordinates in the cylinder's
local coordinate space, so getX(), getY(), getZ() tell you the
intersection point of the pick ray cast to the scene by cursor
position and the cylinder. Moreover, the events have getPickResult()
from which you can obtain also distance from camera, picked face (not
used for cylinder but identifies picked triangle for a mesh) and
texture coordinates.
Pavel