JDK-8122604 : SpecularPower doesn't work as expected
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2013-12-11
  • Updated: 2015-06-17
  • Resolved: 2013-12-12
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
8Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Run 3D Sphere app from Ensemble8.

Try to change SpecularPower in playground. It has no effect on the sphere.

However if you disable specularMap, it start to affect resulted lighting but in the weird way - there would be not steady raise from 0 to 64 but rather several raises on short value ranges. 

See RT-34818 for prism.verbose output.
Comments
Not reproducible with b119.
12-12-2013

Good news! This issue is not reproducible with graphics-scrum-b2152 and JDK b118.
12-12-2013

For 1 and 2 I was getting the same results no matter of the value of the specularColor. I can enhance the demo to allow clear setting of null vs. color + specify opacity. Let me double check my findings. What Java/JavaFX version would you suggest for that?
11-12-2013

Regarding 1 and 2: there is no effect because specular color is set to #000000, as stated in the RT-32204, resulting specular component is multiplied by the specular color, so we will get black specular component if the specular color is set to black. Actually there is a distinction between setting null as specular color and #000000, I'm not sure if the documentation clearly states that. If you set specular color to null, it will not have effect on the specular component (if the map is set, of course) I can't reproduce results shown in screenshots 3 and 4.
11-12-2013

We are out of time for FX 8, so I request deferral to 8u20.
11-12-2013

Although it may confusing to see comma in the number but it is actually just a digital dot shown as comma due to locale on my computer. Actual values are from interval 0 - 64, I have double checked it.
11-12-2013

Compare screenshots 3 and 4: with map disabled and color set to non transparent value there is effect of specular power, but on screenshot 4 power is greater than on screenshot 3 although effect is smaller.
11-12-2013

compare screenshots 1 and 2: specular power is different but there is not effect
11-12-2013