mojira.dev
MC-176864

Mirrored custom model scaling does not render correctly

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

Linked issues

Attachments

Comments 7

⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.

We have removed it and added the latest released version

Please edit the Affects Version/s field and select the specific Released Version you were using when you encountered the reported issue.

If you can't find it in the list, please make sure that:

  • You are in the correct project on the bug tracker.

  • You were playing the latest release version or the latest development version of the game.

This issue has been temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automagically! Please report any issues in Discord or Reddit

That's because the last Pre-release was minutes from being released. (Never had this one before!)

Just clarifying, the model actually renders inside out unlike in 1.14. What is defines as east remains an east face, even is east is inside the model, whereas before is rendered fine and correctly used the texture on the other side of the element.

Added screenshots which show quite well first person is also affected (when in left hand, the model is mirrored).

That I knew beforehand; must have forgotten to remove it in the summary (as it is now confirmed to affect both perspectives). Also appreciate the change @Chandler.

If I'm understanding this right, this occurs in 1.20-pre1:

[media]

[media]

[media]

[media]

[media]

[media]

[media]

[media]

Yes, this issue has affected 1.19.4 as well as every 1.20 snapshot release to date.

EDIT: It now seems to concern all perspectives.

Jatzylap

(Unassigned)

Confirmed

Platform

Low

Resource Packs

held-item, item-model, rendering

1.15.2, 20w13b, 20w14a, 20w16a, 20w18a, ..., 1.20.1, 1.20.2 Pre-Release 3, 1.20.2, 23w40a, 23w43a

Retrieved