To support successful position of 3D objects within 2D scene and to support successful mix of 2D and 3D components within a single scene, coordinates conversion API is needed.
It seems that the minimal necessary amount of methods are these two:
- PerspectiveCamera.localToScene(Node node, Point2D point) converting 2D point (z = 0) in given node local coordinates into into 2D point on projection plane (z = 0)
- PerspectiveCamera.SceneToLocal(Node node, Point2D point) converting 2D point on projection plane into 2D point on the z = 0 plane of the given node local coordinates.
It seems that the minimal necessary amount of methods are these two:
- PerspectiveCamera.localToScene(Node node, Point2D point) converting 2D point (z = 0) in given node local coordinates into into 2D point on projection plane (z = 0)
- PerspectiveCamera.SceneToLocal(Node node, Point2D point) converting 2D point on projection plane into 2D point on the z = 0 plane of the given node local coordinates.
- blocks
-
JDK-8100766 3D geometry support
-
- Resolved
-
- relates to
-
JDK-8116798 Event local coordinates are wrong with perspective camera
-
- Closed
-
-
JDK-8100611 3D coordinates conversion methods are needed
-
- Closed
-