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

Textures and Effects are off when far away from the center of the map

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Minecraft 17w47a
    • Minecraft 1.8.8, Minecraft 15w36d, Minecraft 15w44a, Minecraft 15w45a, Minecraft 15w47c, Minecraft 1.9.2, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w14a, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 18w09a, Minecraft 18w10a, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w15a, Minecraft 18w16a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4, Minecraft 1.13.2, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a
    • Confirmed
    • (Unassigned)

      Introduction

      Most of this behavior can be reproduced near the world border: /tp 29999950 29999950
      Some of the strange rendering can also be seen closer to the center of the world but not in such an extreme way.

      Reason for this bug

      The 32-bit float simply run out of resolution/accuracy with the large coordinates. The solution is a bit of "ugly", but it got the work done, as I'm looking at perfectly fine wires at coordinates near X&Y of 17,000,000.
      There are more unnecessary (and sort of harmful) (float)-casts in that same method, but they are for Y-coordinates, and since Y-coordinates are, for the time being, very limited, they do not show similar problems. (That whole class seems to be littered with those float-casts, many of which seem to be unnecessary and possibly causing similar issues for other blocks/visuals.)
      comment by bugi74 on MC-3718

      Other bugs caused by this

      Fix for fire's smoke
      This time no source code as the changes cover almost the whole method. But its the very same fix, in BlockFire.randomDisplayTick(), change floats to doubles and remove casts to float when the variables are handling coordinates. This also includes sound generation coordinates.
      comment by bugi74 on MC-3718

      Affected entities, blocks or particles

      The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

      Falling blocks

      The offset is probably caused by the method net.minecraft.client.renderer.entity.RenderFallingBlock.doRender(EntityFallingBlock, double, double, double, float, float). The texture being too large, shifted and rotated is caused by something else.

      Particles

      Apparently only affects particles created under certain circumstances

      • Landing particles, see MC-76810 created by TheMoogle
      • Particles created by the /particle command
      • TNT explosion particles
      • Green bone meal particles
      • barrier particles
        • MCP 9.35 rc1 name
          Method: net.minecraft.client.multiplayer.WorldClient.showBarrierParticles(int, int, int, int, Random, boolean, MutableBlockPos)

      Rain and snow

      Rain and snow renders as large white lines when you are at a very high y-coordinate. This does however only happen for large y, but not for x or z coordinates.

      /teleport ~ 3000000 ~
      

        1. 2017-04-04_22.55.33.png
          154 kB
          pascal anema
        2. 2017-04-04_22.55.36.png
          173 kB
          pascal anema
        3. Falling sand offset (1) (15w36d).png
          347 kB
          Marcono1234
        4. Falling sand offset (2) (15w36d).png
          330 kB
          Marcono1234
        5. Item frame offset (15w36d).png
          375 kB
          Marcono1234
        6. Landing particles offset (15w36d).png
          85 kB
          Marcono1234
        7. rain_altitude_1 000 000.png
          64 kB
          Swekob
        8. rain_altitude_10 000 000.png
          38 kB
          Swekob

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            23 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: