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

Is it possible to get the texture from the UV construction? #10

Closed
lthiet opened this issue Feb 21, 2022 · 3 comments
Closed

Is it possible to get the texture from the UV construction? #10

lthiet opened this issue Feb 21, 2022 · 3 comments

Comments

@lthiet
Copy link

lthiet commented Feb 21, 2022

Thanks a lot for the bindings!

I am using the bindings to create a mesh with UV mapping from 3d scans. For each point, I have an associated color and with open3d I managed to make a colored mesh.

image

Now I am using Atlas to generate UV mapping, but I don't know how I can get a texture from it so I can use it in Unity for example.

Do you know how I could do that?

@mworchel
Copy link
Owner

Hi,

transferring vertex attributes to texture space is, as far as I know, impossible with xatlas.

However, you can take the UV mapped mesh and try using Meshlab like here: https://www.hisshadow.com/vertex-colour-to-texture/. I didn't try this tutorial, but it should do the trick. There are also Python bindings for Meshlab, see https://github.com/cnr-isti-vclab/PyMeshLab.

Hope this helps.

@lthiet
Copy link
Author

lthiet commented Feb 21, 2022

That worked exactly as described! Thanks a lot!

@lthiet lthiet closed this as completed Feb 21, 2022
@jh27kim
Copy link

jh27kim commented Jan 14, 2024

Hi, i tried your method but the texture map I get seems a little weird
Is this correct ? Maybe this is because I'm using imperfect meshes?

RGB Image
image

Texture map
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants