So I had a lot of issues with this... I was watching 'AK3Dfx' youtube tutorial (who I must say did a great job in showing how to install everything and get everything from scratch to the smpl JSON data, The only issue I encountered was the final step, of turning the smpl data to a .bvh format to import into Blender.
Below is the methods I did to fix the issue with converting it to .bvh
I did not have the correct Python enviroment, so I needed to downgrade Python to 3.10. I also did not have the bpy, so I ran the below code:
conda create -n bpyenv python=3.10 conda activate bpyenv pip install bpy
I then activated the bpy enviroment
conda activate bpyenv
And finally, my 'convert2bvh.py' file did not work, so my new 'convert2bvh.py' is attatched, and this seemed to fix it for me.
Upon replacing the file, I then ran the below code. This then produced me my '0.bvh' file which I could import into Blender
python scripts\postprocess\convert2bvh.py -- --gender MALE --poses 1_output/project/smpl --fps 60 --output 1_output/project
After importing into Blender, I had issues with the pelvic bone being rotated 90 degrees, however I fixed this by just fixing the rotation by 'copy rotation' to a plane I added to the scene which I rotated, although Im sure some people will be able to tweak the 'convert2bvh.py' to fix the orientation if this is an issue experienced by many.
I am unable to attatch it as a .py file, so I have included the contents within the .txt file.
Hope this helps anyone who is struggling.
convert2bvh.py.txt
So I had a lot of issues with this... I was watching 'AK3Dfx' youtube tutorial (who I must say did a great job in showing how to install everything and get everything from scratch to the smpl JSON data, The only issue I encountered was the final step, of turning the smpl data to a .bvh format to import into Blender.
Below is the methods I did to fix the issue with converting it to .bvh
I did not have the correct Python enviroment, so I needed to downgrade Python to 3.10. I also did not have the bpy, so I ran the below code:
conda create -n bpyenv python=3.10 conda activate bpyenv pip install bpyI then activated the bpy enviroment
conda activate bpyenvAnd finally, my 'convert2bvh.py' file did not work, so my new 'convert2bvh.py' is attatched, and this seemed to fix it for me.
Upon replacing the file, I then ran the below code. This then produced me my '0.bvh' file which I could import into Blender
python scripts\postprocess\convert2bvh.py -- --gender MALE --poses 1_output/project/smpl --fps 60 --output 1_output/projectAfter importing into Blender, I had issues with the pelvic bone being rotated 90 degrees, however I fixed this by just fixing the rotation by 'copy rotation' to a plane I added to the scene which I rotated, although Im sure some people will be able to tweak the 'convert2bvh.py' to fix the orientation if this is an issue experienced by many.
I am unable to attatch it as a .py file, so I have included the contents within the .txt file.
Hope this helps anyone who is struggling.
convert2bvh.py.txt