aka-toshi / generate_smpl_motion

事前に直立姿勢で取得したメッシュモデルを,歩行時3次元の関節位置と一致するように変形させ,そのメッシュモデルをBlenderPythonAPIを用いてアニメーション化するコード
Other
5 stars 2 forks source link

generate the SMPL motions using vmocap

version

blender 2.80

ファイル構造について

step

  1. make the SMPL model (*.ob) from image
  2. Move the SMPL 3D mesh we just created based on the time series data of the joints(*.trc).

Note that the different versions of the python used in Step 1(python2) and Step 2(python3)

make SMPL model from image (step1)

code from HMR
imagefolder is in ./exp/imagedata/example.png
run with python2(read HMR settings)

$.
$make 0=example

result SMPL data is in ./exp/objdata/example.obj

make SMPL motions using vmocap data(.trc) (step2)

vmocapdata (.trc) is in ./exp/trc/exapmle.trc
SMPL data is in ./exp/objdata/example.obj
run with python3

$exp
{yourblenderpass} --python makeanim.py -- example.obj -- {start frame number} -- {frame range number}

example

~/../../Applications/Blender.app/Contents/MacOS/Blender --python makeanim.py -- model1.obj -- 600 -- 60