I’m placing a target linked to a specific part of a gltf mesh (in the front part) with the GUI Advanced Dynamic Texture. When i click on the target some information about that mesh appear on the screen.
The problem is that when i rotate the camera the circle target is still visible, even if the back part of the model, in a realistic 3d world, should hide the target.
I couldn’t find any examples with this behaviour. I read the documentation and hoped that the advancedTexture.isForeground = false/true could help but it’s not what i need.
Is there a way to achieve this?
This is, by, far, what i wrote in the creating part of the target.
var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”);
var target = new BABYLON.GUI.Ellipse();
target.width = “40px”;
target.height = “40px”;
target.color = “red”;
target.thickness = 4;
target.alpha = 1;
target.background = “transparent”;
target.isPointerBlocker = true;
Back view (wrong behaviour cause it should be hidden):
Thank you very much in advance,
happy weekend to everybody.