Importing and rigging .bvh

Hi guys, I just registered, but I’m not completely newbie :slight_smile: Wondering, how to import and nicely animated armature as .bvh file and make it working with a mesh. After importing armature looks like this
http://img688.imageshack.us/img688/4544/97600693.th.png
Then after pressing alt+a animation is playing nicely. Actually I wonder, that in pose mode, after applying clear rotation for all bones, armature looks like this :eek:
http://img85.imageshack.us/img85/2444/43259444.th.png
The problem is with rigging, despite which method I’m chosing, the results are bad. Rotated 90dgr around X armature, mesh not rotated, parent from bone heat:
http://img820.imageshack.us/img820/3288/20591044.th.png
from envelopes:
http://img825.imageshack.us/img825/3577/14357167.th.png
The same view is with “don’t create groups” and “name groups”. And afterward this mesh is behaving in strange way while trying to rig, moving somewhere further. I did photos without posing armature well, but the same is if it is posed. I thought I knew how to manage with armatures, but here I’m lost, don’t know where mistake is :frowning: Can anybody suggest good way to rig any mesh to this imported .bvh armature? Thanks in advance :yes: