Make highlighted element looks like Forge platfrom

Hello everyone,

I’m using raycaster for highlight - change the color of the selected mesh. But I want to make it like Autodesk Forge did, this below image used this platfrom. When i selected an element, and then i rotate the camera so that this selected element is hided by many other elements, but I’m still able to see the selected element before. How do I do to make it in three.js

image

You can assign a material with depthTest and depthWrite set to false while it’s highlighted.

I’ve just tried, but it still like that :frowning:

Hi!
Any chance to provide a live code example with the problem?

I missed, you also need to set transparent to true.