JDK-8123294 : Adding a Button to 3D scene breaks lights calculations in D3D pipeline
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-06-15
  • Updated: 2015-06-17
  • Resolved: 2013-06-28
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
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
I've added the following code to MeshViewer.java file:

                    case " ":
                        root.getChildren().add(new Button("Button"));
                        break;

so that when you press spacebar a button is added to the scene root and immediately lightning changes in D3D pipeline. See attached images.
Comments
In b104
27-08-2013

SQE: verified.
26-08-2013

Fixed. Changeset: 1dd6b390520c Author: Chien Yang <chien.yang@orcale.com> Date: Fri Jun 28 15:40:17 2013 -0700 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt/rev/1dd6b390520c
28-06-2013

With es2 pipeline this doesn't happen.
15-06-2013

This may be a bug in state switching in the D3D-specific code.
15-06-2013