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

Nondeterministic texture behaviour when using custom block models on some operating systems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 1.21.2 Pre-Release 1
    • None
    • Community Consensus
    • (Unassigned)

      The bug

      On some operating systems (Linux seems to be the most consistently affected), custom models for items and blocks can produce unexpected behaviour when mapping certain areas of the atlas.

      How to reproduce

      A resource pack is applied to this ticket.

      1. Download and apply the attached resource pack
      2. Look at some granite, diorite or andesite
      3. Take a screenshot
      4. Exit out of the game and close it
      5. Load back into the game with the resource pack still active
      6. Take another screenshot of the granite/diorite/andesite
      7. Compare

      Expected results

      Since the resource packs active are the exact same, the blocks in question wouldn't look any different at all.

      Actual results

      They do.

      How to fix

      When generating the atlases, it may be advisable to overwrite the old atlas with some sort of texture before then overwriting it with the other textures supplied by the resource pack (or, when starting the game, fill a field of the size required with that texture before overwriting that with the needed textures). This would eliminate any undefined, unwanted random behaviour like is shown here. I've provided an example checkerboard pattern that could be used for this purpose.

        1. 2024-09-25_11.27.49.png
          2024-09-25_11.27.49.png
          676 kB
        2. 2024-09-25_11.28.13.png
          2024-09-25_11.28.13.png
          736 kB
        3. 2024-09-25_11.28.41.png
          2024-09-25_11.28.41.png
          747 kB
        4. 2024-10-09_13.53.00.png
          2024-10-09_13.53.00.png
          414 kB
        5. 2024-10-09_13.53.18.png
          2024-10-09_13.53.18.png
          453 kB
        6. 2024-10-09_13.53.22.png
          2024-10-09_13.53.22.png
          163 kB
        7. 2024-10-09_13.53.28.png
          2024-10-09_13.53.28.png
          139 kB
        8. 2024-10-09_13.53.30.png
          2024-10-09_13.53.30.png
          96 kB
        9. 2024-10-09_13.53.39.png
          2024-10-09_13.53.39.png
          251 kB
        10. example-tile.png
          example-tile.png
          0.1 kB
        11. nondeterministic-block-models-1.21.2pre1-v1.0.zip
          3 kB

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

              Created:
              Updated:
              CHK: