isl-org / isl-org/Open3D

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

Open
#7,102 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

### Checklist

- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](https://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](https://www.open3d.org/docs/release/) and the [latest documentation](https://www.open3d.org/docs/latest/) (for `main` branch).

### 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](https://github.com/user-attachments/files/18186830/mesh.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.