Sign in to follow this  
Tomek

Detect if mesh is behind a 3d model.

Recommended Posts

This is kind of referencing another topic but this question is about something else.

I'm creating something I call "anchors" which is basically a GUI control stuck to the mesh. 

Right now I have a scene where with a click you can add the anchor and move it with Gizmo by clicking on it again.

What I now try to do is to make these anchors/GUI buttons half visible when behind an object.

This is where I am right now: https://www.babylonjs-playground.com/#RQ2T0A#23.

It kind of works... besides some spontaneous flashing when moving the camera. But the bigger issue is when I load a Yeti model: https://www.babylonjs-playground.com/#RQ2T0A#24 - it doesn't seem to work at all. I bet this has to do with this https://github.com/BabylonJS/Babylon.js/issues/5386.

I'm not sure what's the best approach here or how to fix it...

Share this post


Link to post
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...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.