yfeng95 / face3d

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

plot_mesh is rather slow #2

Closed cleardusk closed 6 years ago

cleardusk commented 6 years ago

Thanks for your sharing your code! The mesh render of mpl_toolkits.mplot3d seems rather slow? The render result of Data/example1.mat by this line mesh.vis.plot_mesh(camera_vertices, triangles) is

Is there any solutions to real-time render 3D face mesh like Matlab?

lxy2017 commented 6 years ago

Hi, how can I find the file of pncc_code.mat.

yfeng95 commented 6 years ago

@cleardusk Yep, it's too slow. As said in vis.py, I'm considering to use another package to visualize mesh. However, visvis & vispy & opengl all occur errors in my environment...(seems due to VNC) And, I don't want face3d to be large... So, if you have a better solution, please tell me!

yfeng95 commented 6 years ago

@lxy2017 Please see #1, thanks!

cleardusk commented 6 years ago

@YadiraF I have also tried to find python packages to render 3D mesh, but there is not any good solution. Some errors are also caused by VNC. I gave up 😂 Great thanks for your released code, it is helpful for me because I also have a plan to write the python codebase of 3D face. At last, welcome to focus on my work(under development): https://github.com/cleardusk/3DDFA, which is the official implementation of XiangyuZhu's Face Alignment In Full Pose Range: A 3D Total Solution😃

yfeng95 commented 6 years ago

@cleardusk Great work! 3DDFA is an influential work, its code helped me a lot when I started to learn 3D Face. Actually, face3d is organized for researchers and beginners in 3D Face(very light-weight & comment with references), I hope this also helps others.