yfeng95 / face3d

Python tools for 3D face: 3DMM, Mesh processing(transform, camera, light, render), 3D face representations.
2.68k stars 615 forks source link

Using 'Pose_Para' in obj position fixed rendering #59

Open heathentw opened 5 years ago

heathentw commented 5 years ago

Hi sir, appreciate your great work! my question is that in "8_generate_posmap_300WLP.py" you've demonstrate how to plot the mesh using the parameters from .mat file in the dataset; however in the example code it seems that you fix the camera and apply the translation parameter on the obj. Is it possible to render the mesh under an "obj fixed" style? just like method 2 you demoed in "3_transform.py", i.e. how to set the cam parameters (at, eye etc.) by the obj pose parameters loaded from dataset? A explanation or hint will be enough, thanks!