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

Mirrored custom model scaling does not render correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.15.2, 20w13b, 20w14a, 20w16a, 20w18a, 20w19a, 20w20b, 20w21a, 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w46a, 20w48a, 20w51a, 1.16.5, 21w06a, 21w08b, 21w11a, 21w13a, 1.17, 1.17.1 Pre-release 1, 21w37a, 1.18 Pre-release 1, 1.18 Pre-release 5, 1.18, 1.18.1 Pre-release 1, 1.18.1, 22w03a, 1.18.2, 1.19 Pre-release 1, 1.19 Release Candidate 2, 1.19, 22w24a, 1.19.1 Pre-release 2, 1.19.1 Pre-release 3, 1.19.3 Pre-release 3, 1.19.4, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.20.2 Pre-Release 3, 1.20.2, 23w40a, 23w43a
    • - Windows 10
      - Java 8
      - Intel Core i5-7200U
      - Intel Graphics 620
    • Confirmed
    • Resource Packs
    • Low
    • Platform

      The Bug

      An issue related to custom item models when the model scale of the displayed item is flipped to match a value strictly less than zero, resulting in that item to render shadows and light inconsistently. In addition, certain faces of the affected model also become transparent due to the back-face culling inversion.

      This issue was still present and occurred in 1.15.2 as a weird lighting bug (similar to MC-163242).
       

      How to reproduce

      Demonstrations are within the resource packs provided :

      • Fishing Poles Example (updated): The issue is noticeable when equipping a warped fungus on a stick to the right hand in first or third person.

        First person

              "firstperson_righthand": {
                  "rotation": [-5, -85, 10],
                  "translation": [1.75, 4.75, 2.25],
                  "scale": [1, 1, -1]
              },

        Third person

                "thirdperson_righthand": {
                  "rotation": [0, -90, 0],
                  "translation": [-1, 3.25, 1.75],
                  "scale": [1, 1, -1]
              },

      Source : warped_fungus_on_a_stick.json

       

      • Item inversion test (1.20-pre1) : The issue is noticeable when displaying a block item on the ground, in an item frame or a GUI slot.

        Item frame

              "fixed": {
                  "rotation": [ 0, 0, 0 ],
                  "translation": [ 0, 0, 0],
                  "scale":[ 0.5, -0.5, 0.5 ]
              },

      GUI slot

              "gui": {
                  "rotation": [ 30, 225, 0 ],
                  "translation": [ 0, 0, 0],
                  "scale":[ 0.625, -0.625, 0.625 ]
              },

      Ground / Thrown item

              "ground": {
                  "rotation": [ 0, 0, 0 ],
                  "translation": [ 0, 3, 0],
                  "scale":[ 0.25, -0.25, 0.25 ]
              },

      Source : block.json

        1. 2020-05-01_02.19.38.png
          2020-05-01_02.19.38.png
          394 kB
        2. 2020-10-21_18.46.27.png
          2020-10-21_18.46.27.png
          1.16 MB
        3. 2020-10-21_18.46.29.png
          2020-10-21_18.46.29.png
          1.12 MB
        4. 2020-11-21_12.36.23.png
          2020-11-21_12.36.23.png
          4.20 MB
        5. 2023-05-13_17.01.31.png
          2023-05-13_17.01.31.png
          155 kB
        6. 2023-05-13_17.01.35.png
          2023-05-13_17.01.35.png
          162 kB
        7. 2023-05-13_17.01.52.png
          2023-05-13_17.01.52.png
          129 kB
        8. 2023-05-13_17.02.01.png
          2023-05-13_17.02.01.png
          72 kB
        9. 2023-05-13_17.02.02.png
          2023-05-13_17.02.02.png
          69 kB
        10. 2023-05-13_17.02.11.png
          2023-05-13_17.02.11.png
          97 kB
        11. 2023-05-13_17.02.57.png
          2023-05-13_17.02.57.png
          215 kB
        12. Fishing Poles Example.zip
          31 kB
        13. Fishing Poles Example (updated).zip
          31 kB
        14. item-inversion-test-1.20pre1-v1.0.zip
          0.9 kB
        15. Resource pack (lily pad model).zip
          4 kB

            Unassigned Unassigned
            J4TZplayZ Jatzylap
            Votes:
            46 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              CHK: