Highlighter making mesh black on in GLTF,
highlighter = new HighlightLayer(“hl1”, scene);
highlighter.addMesh(pickResult.pickedMesh.subMeshes[0].getRenderingMesh(), Color3.White());
Highlighter making mesh black on in GLTF,
highlighter = new HighlightLayer(“hl1”, scene);
highlighter.addMesh(pickResult.pickedMesh.subMeshes[0].getRenderingMesh(), Color3.White());
You should provide a PG, else it will be difficult for us to diagnose the problem.
Having said that, it should be enough to do:
highlighter.addMesh(pickResult.pickedMesh, Color3.White());
to add the picked mesh to the layer.
Here is the PG
https://www.babylonjs-playground.com/#AG7STC
i have two issues in the PG,
Highlighting does work for me:
Regarding point 2, you should set scene.useRightHandedSystem = true
as gltf files are in a right-handed coordinate system:
thanks it work, if the scene.useRightHandedSystem = false highlighter is not working