Issues with DynamicTextures

cad

When my character passes through occluding objects in the line of sight as shown in the GIF, I change the occluding object to transparent. At this point, DynamicTextures seem to render in front of the camera, and I’m unsure of the cause.

Hey! It is a bit complicated to help without a repro but I feel like this is because of transparency.
In that case Babylon will render the opaque objects first and then the transparent one. That could cause some unwanted artefacts

You can try this and see if it works:
mesh.material.needDepthPrePass = true

More info: Transparent Rendering | Babylon.js Documentation (babylonjs.com)

1 Like