Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8328788

[macOS] Spot Light scene result does not match other platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx22
    • javafx
    • None
    • generic
    • os_x

      This came out as a result of working on https://bugs.openjdk.org/browse/JDK-8316117

      On macOS above jfx-tests test (Effects2Test.Lightningspotlight) fails. Further investigation showed that it is not an issue with the test itself, but rather a problem on JFX side.

      ADDITIONAL SYSTEM INFORMATION :
      MacBook M1 Max, macOS Sonoma 14.3.1 only - does not happen on Windows 11 or Ubuntu 22.04 LTS
      Also, out of curiosity, tested it with latest version of Metal pipeline from jfx-sandbox github repo and the problem still occurs.

      A DESCRIPTION OF THE PROBLEM :
      In attached app the Text and Rectangle are lit incorrectly (see SpotLight-Screenshot.png). If we take Scene's or Node's snapshot (SpotLight-Snapshot.png and SpotLight-Snapshot2.png respectively) the lighting is different.
      On Windows and Linux the scene looks like the snapshots, so I think there must be some problem with presenting the scene on macOS window.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run attached program (SpotLightSnapshotIssue.java) on macOS. It will produce two .png snapshots. Compare the snapshots to what is displayed in the window.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Lighting on scene displayed on macOS window matches the snapshots and what is displayed by Windows/Linux
      ACTUAL -
      Lighting does not match above

      WORKAROUND :
      None I could think of

      FREQUENCY :
      always

            jdv Jayathirth D V
            lkostyra Lukasz Kostyra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: