Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv-mapping of a custom head model #29

Closed
Adra8373 opened this issue Aug 2, 2017 · 7 comments
Closed

uv-mapping of a custom head model #29

Adra8373 opened this issue Aug 2, 2017 · 7 comments

Comments

@Adra8373
Copy link

Adra8373 commented Aug 2, 2017

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

@patrikhuber
Copy link
Owner

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

@Adra8373
Copy link
Author

Adra8373 commented Aug 3, 2017

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

@patrikhuber
Copy link
Owner

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.

@patrikhuber patrikhuber changed the title Bind texture to the model uv-mapping of a custom head model Aug 3, 2017
@Adra8373
Copy link
Author

Adra8373 commented Aug 3, 2017

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?

@patrikhuber
Copy link
Owner

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).

@Adra8373
Copy link
Author

Adra8373 commented Aug 3, 2017

Many thanks for replying and for help.

@patrikhuber
Copy link
Owner

@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.

Repository owner deleted a comment from CodingGou Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants