Okay this one is really weird and I don’t really know how it can happen.
I’m sorry that I don’t give a playground but the app that I’m working on is so much complex that making a playground that can reproduce the exact same scenario is really time consuming and too hard without making it incomprehensible.
So the thing is that I’m importing many glb in my scene. There’s only one kind of glb that is creating the problem.
Every other meshes has a custom StandardMaterial and the problematic ones has a PBRMaterial that is not replaced by another material because I need to keep the material infos in the original model.
There’s a functionnality in the app that shows “plus” sprites near a mesh that enables the mesh duplication on the sprite position.
(like this : )
But when I try to show sprites on the mesh that has the PBRMaterial it don’t appear. And what is the most brainf***ing is that if I click on the spot where the sprite is supposed to appear, it does the duplication so it’s pickable just hided by something in the material.
And what makes me believe that the cause is the PBRMaterial is that if I replace the PBRMaterial by a standardMaterial, (which I don’t really want because I want to keep the params as nearest as the glb give) the sprites are visible :
With a Standard Material (sprites are visible and pickable):
With a PBR material (sprites are hidden by something but pickable) :
I’m really desperate on this one if someone can has some relevant clues or knows the problem and knows how to fix it would be a great relief.