mojira.dev
MCPE-219845

Stencil state causes glitches with Vibrant Visuals enabled

Description:
We tend to use Stencil for visual highlighting bones on our entities, it allows us to create depth and visual POIs on our entities. With new PBR features, this state started to create graphical glitches. We did additional testing, and it seems like Stencils are the root of this issue, disabling it allowed us to get rid of these glitches, but it lowers visual quality of our entities.

Steps to reproduce:

  1. Create entity that uses material with ‘EnableStencilTest’ and ‘StencilWrite’ states added and ‘stencilRef’ property defined

  2. Create a world with that entity and enable ‘Vibrant Visuals’

Expected results:
Entity that renders using layers to highlight some of the bones

Actual results:
Entity cases graphical glitches that are also visible through other blocks.

Additional info:
These glitches are present on our marketplace products: Wisp - Dynamic Light XP Games, Furniture Merchant - Furniture Add-on XP Games, Cave Dweller - Cave Dweller Add-on (official) XP Games

Attachments

Comments 5

Confirmed still present in 1.21.90.26

[media]

Specifically seems to be an issue with setting the “stencilDepthFailOp”: “Replace” property on either the front or back face.

I have experienced this while using the time capsule addon and it really ruins the experience

The issue still persists in bedrock 1.21.90

You can add the “Blending” state to the material to fix this glitch

Bogumił Sokołowski-Duda

(Unassigned)

1420201

Community Consensus

Multiple

vibrant-visuals

1.21.90.25 Preview, 1.21.81 Hotfix

Retrieved