patrikhuber / eos

A lightweight 3D Morphable Face Model library in modern C++
Apache License 2.0
1.92k stars 598 forks source link

out.obj files don't contain vn parameters #312

Closed towermalta closed 4 years ago

towermalta commented 4 years ago

Hello, I ran fit-model and got the out.obj file. I want to load the file in Android Studio, but it only contains v,vt,f parameter, not containing the vn parameter, which means no normal variables. I'm wondering if I'm running it wrong, or if there is no vn parameter in the obj file in your design?

patrikhuber commented 4 years ago

Hi,

You can generate the vertex normals easily by yourself - have a look at some standard computer graphics book / internet search.