Abnormal occlusion relationship of highlighted layers

this is my PG 111 | Babylon.js Playground (babylonjs.com)
I create a sphere and a box. when highlightLayer addmesh(box),


but highlightLayer.addmesh(sphere),it’s OK.

The incorrect occlusion relationship is related to the order in which the mesh is created.
If any mesh is obstructed, I hope the highlight layer can be displayed normally like the box.

emmm …I hope the highlight layer can be displayed normally like the sphere.
111 | Babylon.js Playground (babylonjs.com)
I try to reload the sphere,and I failed :smiling_face_with_tear:

You can simply not add the sphere/ground in the excluded list of meshes:

1 Like

I hope the complete outline of the occluded mesh can be seen.
image
if i don’t add the other mesh in excluded list of meshes,just like this


When the mesh is completely occluded, the highlighted layer cannot be seen

That’s a limitation of the highlight layer, unfortunately.

There are a number of threads in the forum regarding hightlighting objects. For eg:

1 Like