Reputation: 77
I'm posting this even though a similar question exists: How to add texture to a mesh in python Open3d? as some classes and their definition have changed with v.0.16.0.
I have been trying to visualize 3D models in Open3D-Python by using the following code:
import open3d as o3d
model = o3d.io.read_triangle_mesh("nk1.glb")
model.compute_vertex_normals()
o3d.visualization.draw_geometries([model])
The issue is that even though the 3D model has texture, it's not being displayed in the visualization window. The model appears with a default grayish color.
Even though the model appears with color on other platforms
The same is not true in Open3D
Using
model = o3d.io.read_triangle_mesh("cc.obj", True)
isn't working for .obj models with .png texture files either
Here's the link to the 3D models: https://drive.google.com/drive/folders/1Q1FcgdU-9mhpiD0uRT4atZIM-PvymyPw?usp=share_link
Upvotes: 4
Views: 1121