mojira.dev
MCPE-242972

Incorrect occlusion between parts of custom block models using the "blend" render method

Short description of the issue

Custom blocks using "render_method": "blend" in "minecraft:material_instances" can display incorrect visual overlap between different parts of their geometry.

In the affected areas, parts of the model that should be hidden behind other surfaces appear visible or seem to overlap those surfaces incorrectly. This is particularly noticeable where multiple cuboids meet or overlap.

I initially encountered this issue in the NetEase edition of Minecraft. I have also reproduced the same visual issue in the international release of Minecraft Bedrock Edition 26.51, using the RenderDragon rendering engine.

Steps to reproduce the issue

Enable the behavior pack and resource pack containing the affected custom block in a test world.

Ensure the custom block uses a relatively complex model consisting of multiple cuboids, with several parts meeting or overlapping.

Make sure the affected model surfaces use a material instance with "render_method": "blend".

Obtain and place the affected custom block.

Look closely at the areas where different parts of the model meet or overlap.

Move around the block and inspect these areas from different viewing angles.

Expected result

The model should display the correct front-to-back relationship between its parts.

Fully opaque regions of a surface should hide geometry behind them. Transparent or semi-transparent regions should display the geometry behind them according to their intended transparency.

Actual result

Some parts of the model appear visible through, or appear to overlap, surfaces that should hide them. As a result, the model does not display the expected front-to-back relationship between its parts.

The red boxes in the screenshots highlight examples of the affected areas.

The issue is still reproducible in Minecraft Bedrock Edition 26.51 with the RenderDragon rendering engine.

This report describes the visible occlusion problem. I have not confirmed whether its underlying cause is transparency sorting, depth handling, or another rendering issue.

Attachments

Comments 2

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media]
{
    "format_version": "1.21.90",
    "minecraft:block": {
        "description": {
            "identifier": "city_traffic_one:traffic_1_011",
            "menu_category": {
                "category": "construction",
                "is_hidden_in_commands": false
            },
            "traits": {
                "minecraft:placement_direction": {
                    "enabled_states": ["minecraft:cardinal_direction"],
                    "y_rotation_offset": 180
                }
            },
            "states": {
                "city_traffic_one:connect_4": [false,true],
                "city_traffic_one:connect_5": [false,true]
            }
        },
        "components": {
            "minecraft:display_name": "tile.city_traffic_one:traffic_1_011.name",
            "minecraft:geometry": {
                "identifier": "geometry.c1.c1_geliwang01_01",
                "bone_visibility": {
                    "bone_2": "!q.block_state('city_traffic_one:connect_4')",
                    "bone_3": "q.block_state('city_traffic_one:connect_4')",
                    "bone_4": "!q.block_state('city_traffic_one:connect_5')",
                    "bone_5": "q.block_state('city_traffic_one:connect_5')"
                }
            },
            "minecraft:material_instances": {
                "*": {
                    "texture": "c1_TieSiWang02",
                    "render_method": "blend",
                    "ambient_occlusion": true,
                    "face_dimming": true
                },
                "mat_0": {
                    "texture": "c1_TieSiWang02",
                    "render_method": "blend",
                    "ambient_occlusion": true,
                    "face_dimming": true
                },
                "mat_1": {
                    "texture": "c1_JinShu03",
                    "render_method": "blend",
                    "ambient_occlusion": true,
                    "face_dimming": true
                }
            },
            "minecraft:collision_box": {
                "origin": [-8,0,-1.008],
                "size": [16,16,2]
            },
            "minecraft:selection_box": {
                "origin": [-8,0,-1.008],
                "size": [16,16,2]
            },
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 5
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 40
            },
            "minecraft:light_dampening": 0,
            "minecraft:light_emission": 0,
            "minecraft:loot": "loot_tables/blocks/traffic_1_011.json",
            "minecraft:map_color": "#009944",
            "minecraft:tick": {
                "interval_range": [10,20],
                "looping": true
            },
            "city_traffic_one:connections": {
                "blocks": ["city_traffic_one:traffic_1_011","city_traffic_one:traffic_1_012"],
                "directions": [4,5]
            }
        },
        "permutations": [{"condition":"q.block_state('minecraft:cardinal_direction') == 'north'","components":{"minecraft:transformation":{"rotation":[0,0,0]}}},{"condition":"q.block_state('minecraft:cardinal_direction') == 'east'","components":{"minecraft:transformation":{"rotation":[0,270,0]}}},{"condition":"q.block_state('minecraft:cardinal_direction') == 'south'","components":{"minecraft:transformation":{"rotation":[0,180,0]}}},{"condition":"q.block_state('minecraft:cardinal_direction') == 'west'","components":{"minecraft:transformation":{"rotation":[0,90,0]}}}]
    }
}

241o5dO2

(Unassigned)

Unconfirmed

Windows

windows11

26.51 Hotfix

Retrieved