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

Negative scale in Custom models

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.15.2, 20w14a
    • None
    • Java: 1.8.0_51 64bit
      OS: Win10

      Tested on both vanilla & optifine, singleplayer, vanilla server & spigot server.
    • Unconfirmed
    • (Unassigned)

      Hi,

      the problem I ran into lately is that when I updated from 1.14.4 to 1.15.2 and above, there are some changes in custom model data in Resource packs - same problem occures if the "pack format" is set to 4 or 5.

      The issue is that the textures are rendered incorrectly - I can see the back of the texture while on 1.14.4, you were able to see it properly. I was trying to look up some work arounds but was not able to. I tracked that the problem is caused by CustomModel.json -> "display" -> "scale": [x, y, z] being set to to less than 0.

       

      In 1.14.4, if one of the coordinates is negotated, let's say "scale": [1, -1, 1], it is flipped over by the appropriate axis however, in 1.15.2 and the 1.16 snapshots, namely the current newest one 20w14a (didn't test older 1.15 versions), if you set any or all of the coordinates to negative, you are able to see only the back of the textures used.

       

      The problematic part of the code of the model being shown on the provided screenshot:

      "display": { "thirdperson_righthand": { "translation": [-0.25, 0, 0], "scale": [-0.5, 0.5, 0.5] }, "thirdperson_lefthand": { "translation": [-0.25, 0, 0], "scale": [0.5, 0.5, 0.5] }}.

      This affects all of the possible views - thirdperson_righthand, thirdperson_lefthand, ground, gui, head and fixed.

       

      Also, as visible on the screenshot, the texture both in the hotbar and any container, is a lot darker in 1.15.2 and above but I was not able to track the cause of the problem yet. Might have something to do with this thing though.

       

        1. 1.14.4.png
          1.14.4.png
          110 kB
        2. 1.15.2+.png
          1.15.2+.png
          117 kB

            Unassigned Unassigned
            Redstonemeer Smirenej
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: