BartMoyaers / BvhToDeepMimic

Convert .bvh files (Biovision Hierarchy) to DeepMimic format.
MIT License
64 stars 12 forks source link

Converting c3d to bvh file #8

Open KuangenZhang opened 4 years ago

KuangenZhang commented 4 years ago

Thanks for your project, it helps me a lot.

Currently, I want to convert my c3d files to bvh files, then I can utilize your code to convert them to mimic motion data. Do you know any projects or software that can convert c3d files to your required bvh files?

Thanks so much for your help.

BartMoyaers commented 4 years ago

Glad that the code can already help you out in the current state!

Sadly, I currently have no experience in converting c3d to bvh files. (There's a chance I will look into it in the future though, then I will let you know.)

KuangenZhang commented 4 years ago

Ok, thanks so much for your response.

BartMoyaers commented 4 years ago

I recently tried to convert a C3D file into a BVH file myself, using blender. Using these two answers posted online: https://stackoverflow.com/questions/20499320/how-to-import-c3d-files-into-blender https://blender.stackexchange.com/questions/30835/convert-a-c3d-and-trc-files-to-bvh

I did the importing of the C3D file using blender 2.79. (Because the C3D plugin isn't ported to 2.8x yet.) And saved the .blend file. I could then simply load the .blend file with the C3D file loaded, into Blender 2.8 without any problems and follow the workflow as described in the second answer. (Scripts to automate the process have also been posted, but I haven't tried that myself yet.)

However, I had less luck using this BvhToDeepMimic repository to convert the BVH to a correct DeepMimic format! The coming days I will look more into finding a solution to use the Blender Inverse Kinematics to map any BVH file to DeepMimic format correctly. Hopefully this will work better than the current not-so-correct implementation!

ghost commented 2 years ago

Hi,

Your subject is very interesting. I recently worked on a biomechanical-friendly .bvh-like armature in Blender: https://www.linkedin.com/feed/update/urn:li:activity:6865631250191908864

the purpose is to link the anatomy atlas to the biomechanics research data. They usually use .C3D files, and a way to automate the conversion into .bvh would be very helpful;

Hugs,

g.