mojira.dev
MC-50506

Interblock Culling Not Respecting Rotation

When a model is rotated in a block file (eg. the pane model, for a vanilla example) the interblock culling specified in the model mesh file is not applied.

Attachments

Comments 4

That's because there is no culling at all on glass panes in the current snapshot. This model will work properly with the default block states.

{
    "__comment": "Fair warning, this format is highly likely to change even more in the future!",
    "ambientocclusion": false,
    "textures": {
	"particle": "#pane"
    },
    "elements": [
        {   "from": [ 7.5, 0, 0 ],
            "to": [ 8.5, 16, 8 ],
            "shade": true,
            "faces": {
                "down": {
                    "uv": [ 7.5, 0, 8.5, 8 ],
                    "texture": "#edge",
                    "cullface": "down"
                },
                "up": {
                    "uv": [ 7.5, 0, 8.5, 8 ],
                    "texture": "#edge",
                    "cullface": "up"
                },
                "north":{
                    "uv": [ 7.5, 0, 8.5, 16 ],
                    "texture": "#edge",
                    "cullface": "north"
                },
                "south":{
                    "uv": [ 7.5, 0, 8.5, 16 ],
                    "texture": "#pane"
                },
                "west":{
                    "uv": [ 0, 0, 8, 16 ],
                    "texture": "#pane"
                },
                "east":{
                    "uv": [ 8, 0, 16, 16 ],
                    "texture": "#pane"
                }
            }
        }
    ]
}
{
    "__comment": "Fair warning, this format is highly likely to change even more in the future!",
    "ambientocclusion": false,
    "textures": {
	"particle": "#pane"
    },
    "elements": [
        {   "from": [ 7.5, 0, 0 ],
            "to": [ 8.5, 16, 8 ],
            "shade": true,
            "faces": {
                "down": {
                    "uv": [ 7.5, 0, 8.5, 8 ],
                    "texture": "#edge",
                    "cullface": "down"
                },
                "up": {
                    "uv": [ 7.5, 0, 8.5, 8 ],
                    "texture": "#edge",
                    "cullface": "up"
                },
                "north":{
                    "uv": [ 7.5, 0, 8.5, 16 ],
                    "texture": "#edge",
                    "cullface": "north"
                },
                "south":{
                    "uv": [ 7.5, 0, 8.5, 16 ],
                    "texture": "#pane"
                },
                "west":{
                    "uv": [ 0, 0, 8, 16 ],
                    "texture": "#pane"
                },
                "east":{
                    "uv": [ 8, 0, 16, 16 ],
                    "texture": "#pane"
                }
            }
        }
    ]
}

The fact that glass panes have no culling now is a separate bug. This bug, the interaction of culling and rotation per block state, is fixed.

This is fixed. Please mark this as fixed. Any glass pane bugs are part of MC-50344

Christie N

(Unassigned)

Confirmed

culling, interblock, model, rotation

Minecraft 14w10c, Minecraft 14w11b, Minecraft 14w17a, Minecraft 14w18b, Minecraft 14w19a, Minecraft 14w20b, Minecraft 14w21b, Minecraft 14w26c, Minecraft 14w28b

Minecraft 14w33c

Retrieved