JDK-8124732 : [FX3D] Picking, Camera: Problems with picking.
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-01-25
  • Updated: 2015-06-17
  • Resolved: 2013-05-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
Run this code.
If you will click on Sphere,Box or Cylinder, on console you will see that PickResult is null.
But if you click on top-left corner of Application, you will see that there is Sphere!
Picking does not account Camera translations.
Comments
Right, this was fixed as RT-28508.
27-05-2013

This is likely been fixed by Pavel. Assigning to him for confirmation.
25-05-2013

This is caused by missing support for movable camera when computing the pick ray (there is a corresponding TODO comment in the code...we should add this bug ID to the comment unless it will be fixed right away).
30-01-2013

Here is screenshot with comments.
25-01-2013

It's Camera problem: private Camera addCamera(Scene scene) { PerspectiveCamera pc = new PerspectiveCamera(false); scene.setCamera(pc); pc.setTranslateX(-200); pc.setTranslateY(-200); pc.setTranslateZ(-1000); return pc; } If you will remove all camera translations, Picking will be correct. (line 68-70)
25-01-2013