Animate MakeHuman character with BVH using Three.js I'm trying to animate a mesh via it's skeleton on a webpage using a BVH. Here's the overall process of what I'm trying to do:


Make a character using MakeHuman and export (mhx format? seems to work best).
Import the character into Blender.
Retarget to a BVH using the MakeWalk plugin for Blender.
Export the character to json using the Three.js exporter.
Export the BVH (not sure if this is necessary, but I figured I might have better luck getting the BVH to match up with the skeleton after retargeting)
Load the character into a web page using Three.js
Animate the character using a BVH.


The animation looks great in blender. I'm trying to use the BVH viewer code from here modified to use the skeleton created by MakeHuman instead of it creating a skeleton from the BVH data. Whenever I try to animate the character, it gets very distorted.

Here's the desired result (more or less) rendered from Blender:



And this is what is happening on the webpage:



As you can see, it's getting totally messed up. I also had to zoom way out in order to see the whole image.

I've tried using different rigs, different file formats, resaving the BVH after retargeting, you name it. I also tried to follow the example here (scroll down to see the instructions), but it says to delete the armature modifiers and when I do that, no bones get exported and Three.js throws an error.

I am at a loss. Is there an up-to-date example somewhere that shows how to do what I'm trying to do?
The simplest process to achieve character animations, created from makehuman in Blender is the following:

1. Install makewalk. This is a Blender addon that should be contained in a folder called blendertools in your makehuman folder.



Drag the makewalk folder into your blender addons folder. On windows, it is c:\users*your_name*\appdata\roaming\blender foundation\blender\2.78\scripts\addons



Then, within blender, go to setting, addons, hit the refresh button on the bottom of the window, and search for makewalk, and enable it, then save your settings

2. Install the .mhx2 plugin to export from Makehuman and import into Blender. The addon consists of two seperate parts - one addon for makehuman and one for Blender. 

Download information and instruction on how to install can be found here

3. Create your character in Makehuman, add a mocap skeleton, and export as mhx2, taking note of the setting shown below





4. Import the mxh2 model in blender.

5. Download motionbuilder compatible bvh files. Here is a source with thousands of motion capture files https://sites.google.com/a/cgspeed.com/cgspeed/motion-capture/cmu-bvh-conversion

6. In blender, with the makewalk addon, attach the bvh file to your character's armature.