isl-org / isl-org/Open3D

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

Open
#6,506 2 comments 0 reactions 0 assignees View on GitHub
bug
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](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).

### 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](https://github.com/isl-org/Open3D/assets/34596974/dfd3004d-4710-4f5a-b8f9-a59aa268c28f)
my model data:
[obj_data.zip](https://github.com/isl-org/Open3D/files/13458134/obj_data.zip)

### Steps to reproduce the bug

```python
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

```markdown
- 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_

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.