isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
11.29k stars 2.29k forks source link

obj 3d car model hubs loss for python script, but ok in exe window. #6506

Open dufengit opened 10 months ago

dufengit commented 10 months ago

Checklist

Describe the issue

I am using open3d to show car 3d model in my code, when i use the python script to load .obj file, hubs for the car is missing, other car parts is ok; but when i open the obj file using open3d.exe, the hubs is ok, and the whole car shows perfect, what is the difference between python script and open3d.exe obj display window for exe and python script: obj_load_error my model data: obj_data.zip

Steps to reproduce the bug

import open3d as o3d

def visualize(mesh):
    vis = o3d.visualization.Visualizer()
    vis.create_window()
    vis.add_geometry(mesh)
    vis.run()
    vis.destroy_window()

mesh = o3d.io.read_triangle_mesh('./material.obj',True)
mesh.compute_vertex_normals()
visualize(mesh) # or o3d.visualization.draw([mesh])

Error message

[Open3D WARNING] [ViewControl] SetViewPoint() failed because window height and width are not set.

Expected behavior

hubs should show normally as exe when load obj file using python script

Open3D, Python and System information

- Operating system: Windows 10 64-bit
- Python version: Python 3.9.12
- Open3D version: 0.17.0
- System architecture: x86
- Is this a remote workstation?: no
- How did you install Open3D?: pip

Additional information

No response

dufengit commented 10 months ago

Hubs show normally when i use o3d.visualization.draw([mesh]) to show the model.

dufengit commented 10 months ago

Hubs disappear again when i use o3d.visualization.draw_geometries([mesh])