mojira.dev
MC-62118

Iron bars model issues

  • The linings on the top/bottom edges should not appear when connected to other iron bars, see attached screenshots showing a comparison of 1.7 and 1.8.

  • The lining on the sides does not appear

Linked issues

Attachments

Comments 15

Confirmed

also confirmed for b snapshot

This seems to be a model problem. This is a more correct model:

{
	"ambientocclusion": false,
	"textures": {
		"particle": "blocks/iron_bars",
		"bars": "blocks/iron_bars",
		"edge": "blocks/iron_bars"
	},
	"elements": [
		{
			"__comment": "Bars",
			"from": [8,0,0],
			"to": [8,16,16],
			"faces": {
				"west": {
					"uv": [0,0,16,16],
					"texture": "#bars"
				},
				"east": {
					"uv": [0,0,16,16],
					"texture": "#bars"
				}
			}
		},
		{
			"__comment": "Top face",
			"from": [7,15.995,0],
			"to": [9,15.995,16],
			"faces": {
				"up": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "up"
				},
				"down": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "up"
				}
			}
		},
		{
			"__comment": "Bottom face",
			"from": [7,0.005,0],
			"to": [9,0.005,16],
			"faces": {
				"down": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "down"
				},
				"up": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "down"
				}
			}
		},
		{
			"__comment": "North face",
			"from": [7,0,0.005],
			"to": [9,16,0.005],
			"faces": {
				"north": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "north"
				},
				"south": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "north"
				}
			}
		},
		{
			"__comment": "South face",
			"from": [7,0,15.995],
			"to": [9,16,15.995],
			"faces": {
				"south": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "south"
				},
				"north": {
					"uv": [7,0,9,16],
					"texture": "#edge",
					"cullface": "south"
				}
			}
		}
	]
}

as opposed to this:

{
    "ambientocclusion": false,
    "textures": {
        "particle": "blocks/iron_bars",
        "bars": "blocks/iron_bars",
        "edge": "blocks/iron_bars"
    },
    "elements": [
        {   "__comment": "bars",
            "from": [ 8, 0, 0 ],
            "to": [ 8, 16, 16 ],
            "faces": {
                "west": { "uv": [ 0, 0, 16, 16 ], "texture": "#bars" },
                "east": { "uv": [ 0, 0, 16, 16 ], "texture": "#bars" }
            }
        },
        {   "__comment": "sides",
            "from": [ 7, 0, 0 ],
            "to": [ 9, 16, 16 ],
            "faces": {
                "north": { "uv": [ 7, 0, 9, 16 ], "texture": "#edge", "cullface": "north" },
                "south": { "uv": [ 7, 0, 9, 16 ], "texture": "#edge", "cullface": "south" }
            }
        },
        {   "__comment": "top/bottom",
            "from": [ 7, 0.005, 0 ],
            "to": [ 9, 15.995, 16 ],
            "faces": {
                "down": { "uv": [ 7, 0, 9, 16 ], "texture": "#edge" },
                "up":   { "uv": [ 9, 0, 7, 16 ], "texture": "#edge" }
            }
        }
    ]
}

which puts multiple planes on the same cube, causing the error.

confirmed as of 14w32d

[Mod] redstonehelper

Affects 1.8.

More info taken from MC-67688: The top lining will only render when viewed from above, the bottom lining will only render when viewed from below. Additionally, these linings should not appear when connected to other iron bars, see attached screenshot showing a comparison of 1.7 and 1.8.

5 more comments

Took in insomniac_lemon's suggestions.

The UV issue should also be fixed.

insomniac_lemon

Grum, unless you have changed the culling system to *fix MC-50817 OR you implement up/down states as Meringue **suggested above then this issue is only half fixed.

People don't want to see horizontal faces through their iron bars or glass panes... (besides just being visually jarring and ugly, it differs from past behavior of iron bars/glass panes)

*= either detecting the state/model a block uses and only cause culling if it's a match/covers all faces... allowing culling on top/bottom faces without issue

**= so culling isn't needed here to have faces on the top/bottom but NOT on the inside... similar to the fix I employed which uses 1-connection states for the sides

Is the line in-between iron bars WAI? Because it's in 15w46a

insomniac_lemon

I have updated my debug pack to show MC-50817 in action, as well as show iron bars without the line in them. 50817 is needed to be solved even for this issue to be fixable by resource packs.

Here is the pack:
https://bugs.mojang.com/secure/attachment/105321/jira_debug_insomniac_lemon_v3.zip

Top/Bottom model issues still present in 1.15.2/20w15a

ileon

Erik Broes

Confirmed

Minecraft 14w29a, Minecraft 14w29b, Minecraft 14w30b, Minecraft 14w30c, Minecraft 14w31a, ..., Minecraft 1.8.6, Minecraft 15w36d, Minecraft 15w40b, Minecraft 15w43c, Minecraft 15w44a

Minecraft 15w46a

Retrieved