facebookresearch/meshtalk

Can i output a .obj file during the process?

666-zhang opened this issue · 1 comments

Right now the project output a video in .mp4, but i'm wondering can i get a .obj file after smooth results?

You can. The vertex positions before rendering are contained in the result tensor here:
https://github.com/facebookresearch/meshtalk/blob/main/animate_face.py#L97

You can just replace the neutral vertex positions from the face template (https://github.com/facebookresearch/meshtalk/blob/main/assets/face_template.obj) with the predicted vertex positions from this tensor at each timeframe and save an .obj file for each frame.