JDK-8123980 : FX 8 3D: Scene doesn't have default lighting that is stated in the specification
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-02-25
  • Updated: 2015-06-17
  • Resolved: 2013-04-11
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 :  
Relates :  
Description
3D shape should be lit by default lighting if there isn't a light source specified in the Scene.

This is stated in the specification:
 A default light is provided when the set of active light is empty
Comments
In b104.
27-08-2013

SQE: verified.
26-08-2013

I agree with Chien and Thor that the default should be a white pointLight attached to the camera. Thor has a very good point that nice lighting requires a careful balance of key, fill, and rim lighting that depends on the size and positions of the objects in your scene. We can provide samples that a developer can look at for reference, and copy and paste into their code as a starting point. Alex, the problem with nice lighting setups is that there are so many possibilities. You are correct that for nice lighting setups, one light is not enough ... you would need at least 3. And once you have 3 lights, you have to have parameters to control their x, y, z positions, intensity, and color. This is best left to code, and we can provide samples on how to set this up. But I agree with Thor and Chien that the default light should be a simple light at the camera position.
09-05-2013

Fixed in 3d sandbox. And will be fixed in main line later today when the sandbox is synced. See RT-26382 for details.
11-04-2013

Default light implemented is not a desirable light, just something to allow developer to see something. To setup nice lighting, requires a good balance of point light(s), ambient and position relative to camera. The position is the difficult part since the distances to the objects in the scene vary greatly. So rather than making a guess we are making it dumb, simple headlight at camera eye pos. Personally don���t see a problem adding ambient light. But will leave that to Kevin or Chien to decide.
11-04-2013

I believe for default light it would be great to have grey ambient light and white point light attached to the left top of the camera. Having just one light wouldn't be enough most probably.
06-04-2013

The default light should be a WHITE PointLight implicitly attached to the camera.
29-03-2013