Jump to content

Picking mesh quite slow


Nico
 Share

Recommended Posts

Hi guys,

 

I'm using scene.pick method to get clicked mesh (only the first intersecting the ray, so I'm sending fastCheck parameter to true), but after some test, on huge 3D file (> 6M of triangles) it is quite slow ... (I only have one submesh per mesh), it takes long time to execute SubMesh.intersects method (because my meshes have a lot of vertices).

 

Does somebody have any tips to speed up my picking ? I can't easily edit my meshes (or adding more submesh).

 

I've seen that BABYLON have a class called "babylon.octree.js", but I'm not really sure that it could help me, and I don't know how to use it :/

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...