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

How to get an updated albedo texture after compute_uvatlas() for TriangleMesh? #7102

Open
3 tasks done
aplatyps opened this issue Dec 18, 2024 · 0 comments
Open
3 tasks done
Labels

Comments

@aplatyps
Copy link

Checklist

My Question

Hi, I'm trying to create a new UV atlas for my mesh. My mesh is already textured and comes with a texture map but I want to rearrange the uv with Open3D so that it looks tidier.

I wrote the following code:

mesh_ = o3d.io.read_triangle_mesh("path/to/mesh", enable_post_processing=True)
is_edge_manifold = mesh_.is_edge_manifold()
if not is_edge_manifold:
    tri_mesh = mesh_.remove_non_manifold_edges()
mesh = o3d.t.geometry.TriangleMesh.from_legacy(mesh_)
mesh.compute_uvatlas(size=1024, gutter=10, parallel_partitions=1)
o3d.t.io.write_triangle_mesh("path/to/output/mesh", mesh)

The original texture:
before

After running above code to get UV atlas, the texture become like this:
after

How do I align/update the texture uv with the existing albedo texture map?
mesh.zip

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

No branches or pull requests

1 participant