Hello everyone, I am trying to create a BVH loader to load motion capture animations and apply to different skeletons in babylon.js. I believe it would be an amazing addition to the library. I am using a MIT library as a starting point: GitHub - herzig/BVHImporter: JavaScript parser for BVH files and converter to Three.js Bones.
I am working on a project that is really hard to decouple the code so I tried to create a playground to share the code.
Currently, I am facing the following problems:
1 - Playground breaks with error: t.initFunction is not a function
2 - Leaf bones (end sites) are created with the name (End Site) I think the offset I am using is not right.
3 - Animation is breaking because leaf bones have no keyframes.
I know I am close to have something working but I am having a hard time figuring it out. Can anyone help me?
Link to the playground: Babylon.js Playground
Skeleton rendered by Blender

Skeleton rendered by Babylon.js
