Cannot Load Texture for ShapeNet Meshes
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
I'm trying to load textured models of [ShapeNet](https://shapenet.org/) 3d objects with the following code:
```
tm = o3d.io.read_triangle_mesh("model.obj", True)
tm.compute_vertex_normals()
```
but when I draw the geometries the mesh is displayed textureless.
Inspecting the `textures` attribute of `triangle_mesh` I can see that the textures were correctly loaded inside the object but are not displayed in the viewer.
I've also tried loading the textures separately
```
import cv2
img1 = cv2.imread(self.data_root + os.sep + str(idx) + os.sep + "images/texture0.jpg")
img2 = cv2.imread(self.data_root + os.sep + str(idx) + os.sep + "images/texture1.jpg")
tm.textures = [o3d.geometry.Image(img1), o3d.geometry.Image(img2)]
```
but the results were the same.
I'm attaching an example of an object from ShapeNet (not working) and another object found on the internet (working).
Open3D version: 0.13.0 13aef96
[capsule.zip](https://github.com/isl-org/Open3D/files/7310133/not-shapenet.zip)
[shapenet.zip](https://github.com/isl-org/Open3D/files/7310131/shapenet.zip)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.