JDK-8100567 : Picking needs to take into account the Node's depthTest to determine pick order (closest)
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2011-05-24
  • Updated: 2015-06-16
  • Resolved: 2013-02-21
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
Related Reports
Blocks :  
Blocks :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
The existing pick algorithm determines its pick order (closest) based on the reverse in-order of the scenegraph. This approach works well for a 2D scene, but it fails to work for a 3D scenegraph. User can no longer always pick what they see.
Comments
Target build: b79
19-04-2013

Target build: b78
19-04-2013

More unit tests: javafx/scene/Mouse3DTest/shouldPickNodeWithDepthTestDisabledCoveredBySibling javafx/scene/Mouse3DTest/shouldPickNodeCoveringCloserSiblingWithDepthTestDisabled javafx/scene/Mouse3DTest/shouldPickNodeWithDisabledDepthtestCoveredByOtherNode javafx/scene/Mouse3DTest/shouldPickNodeCoveringNodeWithDisabledDepthtest javafx/scene/Mouse3DTest/shouldPickByOrderIfParentsDepthTestDisabled javafx/scene/Mouse3DTest/depthTestShouldHaveNoEffectWithoutDepthBuffer javafx/scene/Mouse3DTest/disabledDepthTestShouldNotInfluencePickingIfNotPicked javafx/scene/Mouse3DTest/disabledDepthTestShouldNotInfluencePickingIfNotPickedByNonEmptyResult
21-02-2013

Depth-test picking support pushed in changeset df4255b260e9.
21-02-2013

Unit tests: javafx/scene/MouseTest/topMostNodeShouldBePickedWithDepthBufferByPerspectiveCamera javafx/scene/MouseTest/topMostNodeShouldBePickedWithDepthBufferByParallelCamera
18-02-2013

The perspective camera fix has been merged. Fixed for parallel camera by fix for RT-28446.
18-02-2013

Reopening. Picking takes into account scene's depthBuffer, but not node's depthTest.
18-02-2013

This has been fixed for perspective camera along with the 3D picking API (so far in the 3D sandbox) - RT-24646.
06-02-2013

Affected tests: SceneGraphAutomated/test/scenegraph/functional/DepthTestTest/mouseEventDeliveryTest
23-05-2012

New feature requests are not blockers no matter how important they are. This is out of scope for 2.0.2, but may be considered for a future presidio updates release.
16-09-2011

I'd classify this as blocker as it makes 3D apps development almost impossible.
16-09-2011