patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video
https://www.4dface.io
Apache License 2.0
792 stars 248 forks source link

DrawFace on Video #26

Closed msj121 closed 7 years ago

msj121 commented 7 years ago

Is there a way to instead of drawing the grid, draw the 3d model in that position?

Thanks.

patrikhuber commented 7 years ago

Sure! The app already does it, just to a separate window. You probably need to modify the code a bit to draw into the same buffer. I'd recommend to render with OpenGL anyway if you need speed - you can go through the closed issues a bit to find some more info, other people have asked this before too. It would be best if you looked at the code in a bit more detail and then I'm happy to answer more specific questions (feel free to reopen).