MasterK Posted October 8, 2016 Share Posted October 8, 2016 there is a model exported from 3dmax. it has root mesh "body" and other meshes. when i dispose body. whole model disappear. but other meshes didn't removed from scene.meshes. Why?? Must i find all meshes and dispose?? Quote Link to comment Share on other sites More sharing options...
MasterK Posted October 8, 2016 Author Share Posted October 8, 2016 And i hope someone can explain that how bones bind to mesh in imported (skeleton and mesh)? and how bone's animation Influence mesh? I can't find it in code. only find bone's animation setValue and bone._matrix changes. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 10, 2016 Share Posted October 10, 2016 Hello if you call mesh.dispose(false) it should remove everything: https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.abstractMesh.ts#L1120 Bones influence the mesh in shaders:https://github.com/BabylonJS/Babylon.js/blob/master/src/Shaders/ShadersInclude/bonesVertex.fx Quote Link to comment Share on other sites More sharing options...
MasterK Posted October 11, 2016 Author Share Posted October 11, 2016 @Deltakosh Thanks. I already figure it out the bones thing~ Can't dispose mesh reason is: there are lots of useless bip meshes. they're exported from 3dmax wrong. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted October 11, 2016 Share Posted October 11, 2016 What can I do to help? Quote Link to comment Share on other sites More sharing options...
hen Posted October 11, 2016 Share Posted October 11, 2016 @Deltakosh What MasterK mentioned is a bug with the 3ds max exporter. When exporting a rigged mesh it adds up a mesh node without geometry for every bone to the exported json file. Quote Link to comment Share on other sites More sharing options...
MasterK Posted October 12, 2016 Author Share Posted October 12, 2016 7 hours ago, hen said: @Deltakosh What MasterK mentioned is a bug with the 3ds max exporter. When exporting a rigged mesh it adds up a mesh node without geometry for every bone to the exported json file. my colleague says you can make the bip mesh unlight. then it won't be exported. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
hen Posted October 12, 2016 Share Posted October 12, 2016 10 hours ago, MasterK said: my colleague says you can make the bip mesh unlight. then it won't be exported. in my case its a normal skeleton. actually i use the fbx exporter for this. 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.