JonVarner Posted July 30, 2018 Share Posted July 30, 2018 I am currently working on a project and was testing it on an iphone 6 and noticed that part of the geometry looks like Swiss cheese. Any ideas on what might be causing this? This is an example of what it looks on the iphone: This is what it looks like on the desktop: Quote Link to comment Share on other sites More sharing options...
SvenFrankson Posted July 30, 2018 Share Posted July 30, 2018 Is the binder animated with bones ? If so maybe it's because of limitations about the "bones per vertex" number ? I think it's low for mobiles (documentation says 3 on mobile, 4 on desktop https://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons ) Quote Link to comment Share on other sites More sharing options...
JonVarner Posted July 30, 2018 Author Share Posted July 30, 2018 Thanks Sven, all of my vertices had 4 influences. So I decided to prune them to 3 per vertex and sure enough the problem was gone. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
SvenFrankson Posted July 30, 2018 Share Posted July 30, 2018 Have you tried checking the real value of numBoneInfluencers on your mesh ? For example, add in your loading method, where myAnimatedBinder is your animated mesh. alert(myAnimatedBinder.numBoneInfluencers) (debugging mobile like a boss, but note that alternative and more sophisticated methods involve a properly setup Safari browser and a USB-Iphone cable...) If it says less than 4, some bone influences might be dropped, causing the holes... Quote Link to comment Share on other sites More sharing options...
JonVarner Posted July 30, 2018 Author Share Posted July 30, 2018 Thanks, yeah after trimming them all to 3 per vertex everything looked correct. You were spot on. 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.