Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
dufengit opened this issue Nov 24, 2023 · 2 comments
Open
3 tasks done

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

dufengit opened this issue Nov 24, 2023 · 2 comments
Labels
bug Not a build issue, this is likely a bug.

Comments

@dufengit
Copy link

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 dufengit added the bug Not a build issue, this is likely a bug. label Nov 24, 2023
@dufengit
Copy link
Author

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

@dufengit
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
Development

No branches or pull requests

1 participant