dancasas/SMPLitex

About animation

Closed this issue · 1 comments

Can you tell me how to make an animation like the one in your demo video?

You can create animations by rendering the SMPL meshes in different poses. You can see an example of articulating the SMPL mesh below, where we change the pose parameters 47 and 50 to create an A-pose.

self.body_pose = torch.zeros(1,69)
self.betas = torch.zeros(1,10)
self.body_pose[0,47] = -1.35 # for A pose
self.body_pose[0,50] = 1.30 # for A pose
self.smpl_output = self.smpl( betas=self.betas,
body_pose=self.body_pose,
return_verts=True)

To load animations, you can download the AMASS dataset, which provides animations in SMPL pose parameters in npz format.