patrikhuber / eos-model-viewer

3D model viewer for the eos Morphable Model library
Apache License 2.0
144 stars 53 forks source link

Read a model file #1

Closed joaofsl closed 7 years ago

joaofsl commented 7 years ago

Hello. What file should be given to the fuction that loads the model? And how to generate that file?

Thanks!

patrikhuber commented 7 years ago

Hi,

The readme pretty much says it:

This is a viewer that displays Morphable Models from the eos Morphable Model library (github.com/patrikhuber/eos).

So you give it the model and blendshape file from the share/ directory.

joaofsl commented 7 years ago

Oh, I think I missunderstood the objective of the viewer. I thought it would also be able to display the models generated previously by eos. I'm sorry.

patrikhuber commented 7 years ago

I'm not sure I understand. Yes, the purpose of the viewer is to display models used by eos.

joaofsl commented 7 years ago

Yes, but I thought it would also display the ones generated by the eos, with the input of a face picture. Where can the .obj or .mtl be used?

patrikhuber commented 7 years ago

Any mesh viewer / graphics tool, MeshLab, Blender, etc.

joaofsl commented 7 years ago

Oh, nice, just did it, thanks! Btw, is there any way to draw a colored mesh in c++? What i mean is : what is the correspondence that i can make(code wise) to color the mesh that the morphablemodel object already has. Sorry if that question sounded messy, but I just want to be able to show the colored mesh in c++ and then also change some of its parameters.

patrikhuber commented 7 years ago

Cool.

I'm not exactly sure what you want to do, but I think you'd need to acquire the shape & colour model (link see eos readme), as eos includes only the shape model without the colour PCA. Or maybe you just want to play around with the texturing? In that case you can modify the Mesh in C++ to add colour (e.g. from the texture map), or maybe the render(...) function. Other than that it sounds like you need to read, learn and experiment a bit more by yourself to find out what you actually want to do.

joaofsl commented 7 years ago

Alright, thanks! Will send a mail asking if I could use the shape and colour model.