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

Non-tangential planes in block models still z-fight when viewed from a distance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.1, 24w39a
    • None
    • Java: 21.0.3
      CPU: 16x AMD Ryzen 7 8840HS w/ Radeon 780M Graphics
      OS: Windows 11 Home
    • Confirmed
    • Rendering
    • Low
    • Platform

      Custom block models added to the game via resource packs may use elements which are slightly offset from one another to give the appearance of being co-planar without causing z-fighting artifacts. However, when viewed from a great enough distance these planes still flicker.

      Steps to Reproduce:

      1. Download and apply the provided demo resource pack.
      2. Place down a White Wool block. Observe the Red Wool-textured model element which extends slightly outwards from the base cube.
      3.  Travel away from the White Wool while observing it through a Spyglass.

      Observed Results:
      The White Wool and Red Wool elements begin z-fighting more and more as the player travels further away from the block.

      Expected Results:
      The larger element, textured with Red Wool, exclusively renders on top.

      Notes:
      Three attachments are provided. Z-Fighting Demo.zip, the bug demo resource pack in ZIP format, and two screenshots showing the bug using the resource pack. element_scale.png shows the slight difference in size between the two elements in the block model. z-fighting.png shows the unexpected z-fighting caused by these elements.

        1. Z-Fighting Demo.zip
          14 kB
        2. z-fighting.png
          z-fighting.png
          663 kB
        3. element_scale.png
          element_scale.png
          103 kB

            Unassigned Unassigned
            PopitTart PopitTart
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: