JDK-8315224 : Artifact in FX8-3DFeatures when we use specular map
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-08-29
  • Updated: 2023-10-30
  • Resolved: 2023-08-30
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.
Other
internalFixed
Related Reports
Blocks :  
Relates :  
Description
When we run SpecularColorTestApp from apps/toys/FX8-3DFeatures and use specular map the output doesn't match OpenGL. Also difference in rendering is seen with WritableMapTestApp.

It was suspected that this issue was because of https://bugs.openjdk.org/browse/JDK-8312564 where we see NPE when we run these 2 tests.

But looks like even after https://bugs.openjdk.org/browse/JDK-8312564 fix we see rendering differences. Images attached.
Comments
Changeset: 5fcb52b7 Author: Jayathirth Rao D V <jayathirth.d.v@oracle.com> Committer: Ambarish Rapte <arapte@openjdk.org> Date: 2023-08-30 10:10:38 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/5fcb52b78497f8ae8333a49d1e1524e9dd217713
30-08-2023

Updated shader logic to replicate D3D, because we were sampling more than once when we had both specular color and map. Also we need to maintain appropriate specular when it is not set. After this Metal specular map works properly as in D3D.
30-08-2023

Looks like in OpenGL also we are not drawing specular maps properly and this might be same as https://bugs.openjdk.org/browse/JDK-8311045. In D3D i see specular map getting applied properly. Attached D3D image also. We should replicate D3D behaviour of SpecularColorTestApp for Metal.
29-08-2023

Artifact in OpenGL can be seen easily when we decrease spec power to a minimum. Attached images for D3D and OpenGL for the same.
29-08-2023