Tomek Posted October 24, 2018 Share Posted October 24, 2018 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... Quote Link to comment Share on other sites More sharing options...
Sebavan Posted October 24, 2018 Share Posted October 24, 2018 Yup this would be linked to the same issue and the bones animation happening on the GPU. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 24, 2018 Share Posted October 24, 2018 You may want to use the attachBone feature: you can create a dummy object, attach it to a bone and then attach your anchor to the dummy object Demo: https://www.babylonjs-playground.com/#11BH6Z#371 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.