Jump to content

picking polygon meshes with overlapping bounding boxes


mojojojo
 Share

Recommended Posts

Hi,
 

I have some meshes, created with PolygonMeshBuilder. They're not overlapping, but their bounding boxes are as you can see in the attached screenshot.
I want to achieve pixel perfect picking for those. Using scene.pick without fastcheck for some reason still picks those meshes by bounding box. (In the attached screenshot - the green mesh is getting picked instead of the purple one) Any ideas?

Thanks 

pickingpolygons.png

Link to comment
Share on other sites

Hi again @mojojojo.  I set-up a quick playground...  http://www.babylonjs-playground.com/#1BIQIC#4

None of the picking stuff is installed, yet, but I have a couple things scheduled this morning, and don't have time to flesh-out the testing playground right now.  Maybe mojo or others can flesh it out into a full-blown test scene for this issue.

If not, I'll do more fleshing/testing on this... a bit later.  I wonder if high-precision bounding boxes are allowed on mesh built with PolygonMeshBuilder.  hmm.  Interesting issue.  BBL

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...