Mixing 2D and 3D
chien.yang at oracle.com
Mon Aug 5 19:27:35 PDT 2013
We worked closely with Pavel to ensure 3D picking did extend nicely. I
believe the specification at this link is still up-to-date:
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.
More information about the openjfx-dev