patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video

Home Page:https://www.4dface.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uv-mapping of a custom head model

Adra8373 opened this issue · comments

Hi

I am using full head model. So I do not need to use the extracted texture from the video frame. When I passed the texture image to create_mipmapped_texture function I got a distorted texture, could explain to me how can I solve this problem? Do I use the correct function?

The result that I got is showed in the figure.

Regards
fig

I'm really not sure what you're doing and trying to do, sorry!

I am trying to map the attached picture to the head model, using create_mipmapped_texture function.
male111

It looks like your uv coordinates might be wrong. You should verify that it works in MeshLab or Blender first.

Also the texturing support in eos is quite basic so there might be some issues if your uv coordinates contain the same vertex mapped to multiple triangles on the uv-map.

Thanks for replying. I tested that in 3DMax and It works good. But the uv coordinates are 6188 and the vertices are 5850, they are not equal. That is could be the problem, am I right?

Ok, good.

the uv coordinates are 6188 and the vertices are 5850 [...] That is could be the problem, am I right?

Yes, exactly. eos currently only supports simple texturing where both numbers are the same.
You can try to generate a texture map without seams (i.e. just a flattening of the mesh), if that's possible with your mesh topology.
Otherwise you don't need the rendering (texturing) in eos for anything, you can render using OpenGL (or export an obj and use 3ds Max).

Many thanks for replying and for help.

@CodingGou Sorry, I am deleting your comment here, as it is completely unrelated to this issue. The documentation and GitHub readme are there to tell you how you can start using the eos library.