Hi, Team, Actually I have a question about how to bind a separate glb file to a main armature?
My ‘cloth’ glb file that have same skeleton name and hierarchy structure.
I can bind it together on blender, and then I import to babylon sandbox to get the transform node info and mesh info. all working.
- armature with cloth glf file: untitled.glb - Google Drive
and then I export the separate file, but after I bind it together with babylonjs, seem like having some issue. I checked the babylon inspector and compared the bind glb version and no-bind glb version, seem like no issue.
- armature glf file: Female_v14.glb - Google Drive
- cloth glf file: Cloth_Geo_02.glb - Google Drive
Code:
const nodeArmature = scene.getTransformNodeByName(“Avatar_Root”);
const nodeShirt = scene.getTransformNodeByName(“Cloth_Geo_01”);
const meshShirt = scene.getMeshByName(“Cloth_Geo_01”);
const meshBody = scene.getMeshByName(“Body_Geo”);
nodeShirt.setParent(nodeArmature);
meshShirt.setParent(nodeArmature);
const skeleton = scene.skeletons[1];
meshShirt.skeleton = skeleton;
meshShirt.updatePoseMatrix(Matrix.Invert(Matrix.RotationY(-Math.PI / 3)));
No matter how, Thank you