Here is a sketch of how one might go about doing skeletal animation in JavaScript, broken down into different npm modules that would need to be written:
- A BVH to JSON converter.
BVH is a standard format for representing skeletal animation, there is tons of data in the format, and many tools can consume/produce it. So getting things working in this space is priority #1. I think the best way to tackle this problem would be to write a simple module that takes a stream, and produce a JSON object that exactly represents the HIERARCHY and MOTION sections of a BVH file, along with some serialize method that can produce the same output. - A simple animation viewer. Outside voxel.js, we should probably have a stick figure animation viewer. this could be done in THREE.js using wires to draw each of the joints.
- A motion tweening module Or basically some method to interpolate between per-frame motions. This is necessary to perform