JDK-8103634 : Report correct distances for parallel camera based on its position
Type:Sub-task
Component:javafx
Sub-Component:scenegraph
Affected Version:8
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2013-05-14
Updated:2015-06-16
Resolved:2013-10-30
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.
After the parallel camera position is specified (RT-30188), reflect that position in reporting picking distances.
Comments
Fixed by changeset 73bb1f669a2c. Parallel camera has now the same position as perspective camera in the default case - middle of the scene with the Z distance that makes 30-degrees vertical field of view produce projection plane at Z=0.
Unit tests:
javafx/scene/CameraTest/testParallelCameraPosition
javafx/scene/CameraTest/parallelCameraShouldSyncWhenAssignedToScene
javafx/scene/CameraTest/parallelCameraShouldSyncWhenAssignedToSubScene
javafx/scene/CameraTest/sceneDefaultCameraShouldSyncInTheBeginning
javafx/scene/CameraTest/subSceneDefaultCameraShouldSyncInTheBeginning
javafx/scene/Mouse3DTest/shouldComputeCorrectParallelPickRay
javafx/scene/Mouse3DTest/shouldComputeCorrectMovedParallelPickRay
javafx/scene/Mouse3DTest/shouldPickBoxByParallelCameraFromFront
javafx/scene/Mouse3DTest/shouldPickBoxByParallelCameraFromBack
javafx/scene/Mouse3DTest/shouldPickBoxByParallelCameraFromInside
javafx/scene/Mouse3DTest/shouldPickBoxByParallelCameraFromBehind
javafx/scene/Mouse3DTest/shouldPickSphereByParallelCameraFromInside
javafx/scene/Mouse3DTest/shouldPickSphereByParallelCameraFromBehind
javafx/scene/Mouse3DTest/shouldPickCylinderByParallelCameraFromInside
javafx/scene/Mouse3DTest/shouldPickCylinderByParallelCameraFromBehind
javafx/scene/Mouse3DTest/shouldPickMeshXYByParallelCameraFromBehind
javafx/scene/Mouse3DTest/shouldPickMeshGeneralByParallelCameraFromBehind
javafx/scene/Mouse3DTest/shouldPickRectTranslatedAlongZByParallelCamera
javafx/scene/Mouse3DTest/shouldPickRectRotatedIn3DByParallelCamera
javafx/scene/Mouse3DTest/takesParallelCameraMovesIntoAccount