JDK-8117753 : Depth testing no longer works on 3D elements on the primaryStage after bringing up a second stage with 2D UI controls
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-01-30
  • Updated: 2015-06-17
  • Resolved: 2013-03-13
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
Relates :  
Relates :  
Description
Depth testing no longer works on 3D elements on the primaryStage after bringing up a second stage with 2D UI controls.
In order to reproduce this bug, update and run TestViewer:

TestViewer is checked into the gfx-3d-api branch in:
jfx/apps/internal/TestViewer

Note that depth testing does work on the 3D scene on the primaryStage.
To control the camera and observe the 3D scene from various angles:
[*] Alt + LMB (Left Mouse Button) : Orbit the camera
[*] Alt + MMB (Middle Mouse Button) : Track/Pan the camera
[*] Alt + RMB (Right Mouse button) : Zoom the camera

The press "u", which will bring up the second stage with 2D UI controls.
Note that depth testing no longer works on the 3D scene on the primaryStage.

While chatting with Chien, Chien believes that this may be due to a state restore bug somewhere.

Comments
We don't have a 3d sandbox any more. So if this is broken again, please file a new bug.
15-06-2013

Is this fix still in 3d sandbox only?
15-06-2013

The fix has been pushed to 3d sandbox.
13-03-2013

See also RT-28874 with request to support transparent materials
08-03-2013

Compare initial and broken images. It illustrates what happens to 3D objects when second stage is shown.
08-03-2013