Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-58182

Light sources don't go beyond the chunk they're in

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.0.68 Beta, 1.16.0.60 Beta, 1.16.0.57 Beta, 1.16.0.55 Beta, 1.16.0.53 Beta, 1.16.0.51 Beta, 1.15.0.55 Beta, 1.14.20 Hotfix, 1.13.3, 1.14.1 Hotfix, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.1, 1.16.10, 1.16.20, 1.16.40 Hotfix
    • Fix Version/s: 1.16.0.55 Beta
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Platform:
      Multiple
    • ADO:
      299543, 286315, 435059

      Description

      Every light source doesn't light beyond the chunk it's in when I have reloaded a previously explored area. It's only for chunks I've already loaded, I'll go caving and mob proof with torches but when I go back to base then return everything gets cut off at chunk lines.

      Additional information added by [MCPE Mod] Auldrick

      Steps to reproduce:

      1. Open the attached world 1.16 Lighting Repro.mcworld.
      2. /tp 290 73 233 90 and notice that all the armor stands appear lit up.
      3. Fly or teleport to coordinates 490, 68, 233.
      4. Either place a light source there or remove the one that's already there. (The point is to cause a block light recalculation in that chunk.)
      5. Fly or teleport back to 290, 73, 233.

      Expected results:
      The armor stands remain brightly lit because they are 2 blocks from a light source.

      Actual results:
      The armor stands are in shadows. If you place a light source near them, the light levels are recalculated. If you then removed that source, the shadow does not come back.

      Analysis:
      There is a chunk boundary between the light sources and the armor stands. When you fly 200 blocks east, you cause the edge of the ticking area to align with that chunk boundary, with the light source on the nearer side and the armor stand on the farther side. The shadow appears in the farther chunk when you cause a lighting update with this alignment in effect.

      People have observed that you can fix the shadow by placing a light source near or in it, but that the fix doesn't persist. I expect that's because placing the light source in the shadow causes a different shadow to appear at the edge of the ticking area as it exists at that time. The player then travels around looking for more improper shadows, finds the new one, and place a light source to correct it. But reciprocally, that causes the original shadow to be at the edge of the new ticking area, so it returns. It ends up being a game of whack-a-mole.

      Workaround:

      You can work around this problem by identifying where the dark shadows are and placing a torch between each one and its nearest light source, at least 4 blocks from the light source. That should prevent the shadows from forming again later. After a fix has been released, you can go back and remove the extra torches.

        Attachments

        1. 1.16 Lighting Repro.mcworld
          5.70 MB
        2. Annotation 2020-07-31 191304.png
          Annotation 2020-07-31 191304.png
          1.44 MB
        3. Annotation 2020-07-31 193s353.png
          Annotation 2020-07-31 193s353.png
          3.12 MB
        4. Chunk border light fail.jpg
          Chunk border light fail.jpg
          1.13 MB
        5. Dark in the daytime.jpg
          Dark in the daytime.jpg
          484 kB
        6. image.jpg
          image.jpg
          699 kB
        7. image-1.jpg
          image-1.jpg
          910 kB
        8. image-2.jpg
          image-2.jpg
          941 kB
        9. image-3.jpg
          image-3.jpg
          1.08 MB
        10. lighting.png
          lighting.png
          1.64 MB
        11. lighting bug 1.14.mp4
          5.40 MB
        12. MCPE-58182 1.16 lighting repro.png
          MCPE-58182 1.16 lighting repro.png
          2.84 MB
        13. MCPE-58182 1.16 lighting repro 2.png
          MCPE-58182 1.16 lighting repro 2.png
          3.09 MB
        14. Minecraft (2).png
          Minecraft (2).png
          2.71 MB
        15. Minecraft (3).png
          Minecraft (3).png
          2.76 MB
        16. Minecraft 11_14_2020 2_37_52 PM.png
          Minecraft 11_14_2020 2_37_52 PM.png
          1.25 MB
        17. Minecraft 11_14_2020 2_37_57 PM.png
          Minecraft 11_14_2020 2_37_57 PM.png
          617 kB
        18. Minecraft 11_14_2020 2_38_00 PM.png
          Minecraft 11_14_2020 2_38_00 PM.png
          496 kB
        19. Minecraft Lighting Bug.jpg
          Minecraft Lighting Bug.jpg
          192 kB
        20. Screenshot_2020-04-17-22-00-35-324_com.mojang.minecraftpe.jpg
          Screenshot_2020-04-17-22-00-35-324_com.mojang.minecraftpe.jpg
          683 kB
        21. Screenshot_2020-04-17-22-01-49-961_com.mojang.minecraftpe.jpg
          Screenshot_2020-04-17-22-01-49-961_com.mojang.minecraftpe.jpg
          742 kB
        22. Screenshot_20200503-225641.png
          Screenshot_20200503-225641.png
          422 kB
        23. Screenshot_20200510-154710.png
          Screenshot_20200510-154710.png
          701 kB
        24. Screenshot_20200525-203131.png
          Screenshot_20200525-203131.png
          804 kB

          Issue Links

            Activity

              People

              Reporter:
              BaneofReality Samuel Golden
              Votes:
              199 Vote for this issue
              Watchers:
              63 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: