Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-258630

Moon is rendered too bright when it is lower in the sky

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 1.19.3
    • None
    • Confirmed
    • Rendering

      When the moon is lower in the sky, the moon is rendered brighter. When the moon is rising, it is noticeably brighter than its appearance when it is higher in the sky. This is the opposite behaviour of what actually happens for the real moon. The real moon is less bright when it is rising than when it is nearly overhead due to atmospheric extinction of light. An extreme case can be seen when the moon is seen low down in the void: the moon loses all its texture and appears like the sun.

      The moon is rendered using the same rendering code as the sun. This is technically incorrect because the moon is not a self-luminous body. Instead of using the same rules for both, the moon should be darkened instead of lightened, and this adjustment should be based on the position of the sun (and not the moon). A simple 50% darkening of the colours of the moon should suffice when the sun is above the horizon (eg: 0xffffff white darkens to 0x7f7f7f) , with similar transition rules as the rendering of the sun uses.

      To reproduce:
      1. Create a superflat world (gamerule: doDayLightCycle = false).
      2. Face east.
      3. Set the time to 14500. -> The moon is higher in the sky and appears dimmer: this behaviour is correct.
      4. Set the time to 12950. -> The moon is on the horizon and appears too bright. Compare to the appearance in the previous step.
      5. Teleport to Y=320.
      6. Look down.
      7. Set the time to 6000. -> The moon appears below the player, and is so bright that it loses its finer texture and looks like the sun.

      Attachments:

      • moon.png: shows the difference between moon at time=12950 and time=14500.
      • moon 6000.png: shows the moon below the player when the player is at Y=~300 in a superflat world.
      • moon 6000 possible fix.png: How the moon may look below the player when this is fixed. Created in Gimp by creating a sky-coloured background and superimposing a cropped image of the moon taken overhead, darkened with Curves by 50% and combining the layers in Addition mode.
      • moon 6000 possible fix.xcf: The Gimp file used to create the above.

      This bug report was created at the request of a moderator on /r/mojira. The discussion of this issue can be seen here: https://www.reddit.com/r/Mojira/comments/zjonwq/request_to_reopen_mc45044_two_suns_because_the/

      This is an old bug that was originally reported as MC-45044 (plus others), but that report was closed as "Working as intended" because the bug was not described very well.

        1. moon.png
          184 kB
          bdm68
        2. moon 6000.png
          77 kB
          bdm68
        3. moon 6000 possible fix.png
          11 kB
          bdm68
        4. moon 6000 possible fix.xcf
          17 kB
          bdm68

            Unassigned Unassigned
            bdm68 bdm68
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: