I want to know is it possible to pick point on the surface of the mesh when it isn’t pickable.
I have a glTF model and when I set the isPickable = true , then it effect on the performance of the render while zooming on the mesh. I want to know is it possible without set it as a pickable get the coordinate on it?
Thanks a lot for helping and answering to my. question.
can I ask another question.
I need to get the thickness of 17 layers with the raycast. and it is work fine with almost 10 layers but when I have 17 layers it didn’t work and freeze, and I think its because all the layers is pickable. I want to know is it any way to optimize the performance when the mesh is pickable.
See the console log, it displays the time when you click on a layer. On my computer, it’s around 240ms.
Now, the pick itself can take time because your scene is very heavy in triangles: more than 3.3M. The system finds the picked point by scanning all triangles and looking for intersections with the mouse position. If you display only a single layer (270k triangles with only the blue layer), there are less triangles to check and it’s faster to find this picked point.
You could be interested in some options to make picking / intersecting faster:
Thank you so much for your helping ,
now I tested and it’s about 280ms for both of them.
when I put these layers in my main model which consists of tiled height map and some other model I must turn off the height map to get the result. Thanks a lot for all of your help and your time.