JDK-8102778 : Implement near/far clipping for picking
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-05-24
  • Updated: 2015-06-16
  • Resolved: 2013-05-24
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
8Fixed
Description
This is a subtask of RT-30187. In scope of this subtask, implement support for near/far clipping planes to the picking mechanism. This issue depends on specifying the planes, camera position and fixing rendering, this subtask is meant to do as much as possible before they are resolved. To follow current state of rendering, do the following:
* fully implement clipping for perspective camera with fixed eye position
* for default perspective camera, clip 0.0 to infinity
* for parallel camera, clip negative infinity to positive infinity

This way the clipping will be in place, aligned with rendering, and it should be easy to correct the clipping values when the other issues are resolved.
Comments
Unit tests: javafx/scene/Mouse3DTest/shouldComputeCorrectParallelClipDistances javafx/scene/Mouse3DTest/shouldComputeCorrectPerspectiveClipDistances javafx/scene/Mouse3DTest/shouldComputeCorrectClipDistancesWithFixedEye javafx/scene/Mouse3DTest/shouldPickBoxByFixedEye javafx/scene/Mouse3DTest/shouldNotPickBoxCloserThanNearClip javafx/scene/Mouse3DTest/shouldNotPickBoxFartherThanFarClip javafx/scene/Mouse3DTest/shouldPickBoxInteriorBetweenClips javafx/scene/Mouse3DTest/shouldPickSphereByFixedEye javafx/scene/Mouse3DTest/shouldNotPickSphereCloserThanNearClip javafx/scene/Mouse3DTest/shouldNotPickSphereFartherThanFarClip javafx/scene/Mouse3DTest/shouldPickSphereInteriorBetweenClips javafx/scene/Mouse3DTest/shouldPickCylinderByFixedEye javafx/scene/Mouse3DTest/shouldPickCylinderCapByFixedEye javafx/scene/Mouse3DTest/shouldNotPickCylinderCloserThanNearClip javafx/scene/Mouse3DTest/shouldNotPickCylinderCapCloserThanNearClip javafx/scene/Mouse3DTest/shouldNotPickCylinderFartherThanFarClip javafx/scene/Mouse3DTest/shouldNotPickCylinderCapFartherThanFarClip javafx/scene/Mouse3DTest/shouldPickCylinderInteriorBetweenClips javafx/scene/Mouse3DTest/shouldPickCylinderCapInteriorBetweenClips javafx/scene/Mouse3DTest/shouldPickMeshByFixedEye javafx/scene/Mouse3DTest/shouldNotPickMeshCloserThanNearClip javafx/scene/Mouse3DTest/shouldNotPickMeshFartherThanFarClip javafx/scene/Mouse3DTest/shouldPickMeshInteriorBetweenClips
24-05-2013

Fixed by changeset 99292cb0bf0a.
24-05-2013