The .glb file you provided doesn’t have any animation groups, so getAnimationGroupByName(“samba”) returns undefined. You can see the list of all animation groups in scene.animationGroups
The camera radius is too far to actually see the character. I played with it a bit and found that 1.5 is close enough to be visible. Strangely, the mesh disappears when the radius is less than or equal to 1.0; I’m not certain why this is. Maybe someone else on here would know?
By the way, we recommend the Babylon.js playground at http://playground.babylonjs.com/ if you are able to use it. It is more optimized for prototyping with Babylon You can experiment with a scene, and then save a link and share it here on the forum so we can help you debug.
@vijay_krishna : I will take a look at your model, tonight, to see what I can do. One issue I know that I will run into is that different Mixamo models have different numbers of bones 63-67 from my recollection.
Which is what the original title of this thread was requesting.
Nice looking avatar, though quite a heavy cost on resources (textures). and Mixamo rigs do have 60+ bones which if you don’t need fancy hand animations is a lot.
I did not use any code to create the animation - just used Blender 2.93 and Mixamo. using the following steps.
1 : Imported your glb file into Blender.
2.: Arranged the model so it was in a TPose. (Mixamo - gives better results with TPose).
3 : Unparented all the meshes from the rig (detached the meshes from the rig).
4 : Exported all the meshes (only) to an .fbx file (Hide everything else in the scene - make them inactive).
5 : Uploaded this new .fbx file to Mixamo, set the control points that Mixamo wants (see image below), then added a Mixamo animation to the character.
6. Downloaded the animated .fbx file to my PC, then carried out the the actions that I posted here
7 : Then exported as a .babylon file
Here is the TPose fbx file I initially exported to Mixamo :
If you think the above is too difficult or time consuming, you could try this Blender addon if you wish. Not tried it myself - so not sure how well it works.