JDK-8310109 : Add support for diffuse map in metal
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: internal
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2023-06-15
  • Updated: 2023-06-23
  • Resolved: 2023-06-23
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 :  
Description
Currently we only support diffuse color on 3D primitive and there is no mapping of texture on 3D primitives.

This will be initial implementation for texture support on 3D primitives and will be adding diffuse map support.
Comments
Changeset: 6bb1c2c4 Author: Jayathirth Rao D V <jayathirth.d.v@oracle.com> Committer: Kevin Rushforth <kcr@openjdk.org> Date: 2023-06-22 20:12:36 +0000 URL: https://git.openjdk.org/jfx-sandbox/commit/6bb1c2c4c6354f3a956383bd575ac2ab057710ba
23-06-2023

We were seeing jagged edges because blending was enabled for 3D rendering and also added code for creating, generating and using mipmap in shader. With this change diffuseMap in Ensemble8->3DSphere demo works and also jagged lines are not seen in standalone test where we have transparent pixels within a texture.
22-06-2023

Added code to set and get diffuse map and pass it as texture in fragment shader. With proper sampling of this texture in shader, i can see that 3D Sphere demo in Ensemble8 draws with diffuse map. But if i run standalone test with very small image(55 x 99) having transparent edge pixels, i see jagged edges because of magnification. Attached image of the same. Also for diffuse and selfIllum maps we need to create mipmapped textures, but current implementation has no support for mipmaped textured. WIP.
22-06-2023