isl-org / Open3D

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

Bugs when working with .glb files #6275

Open ArchieLuxton opened 1 year ago

ArchieLuxton commented 1 year ago

Checklist

Describe the issue

I'm working with .glb files and I'm coming up against some problems.

I'm opening the .glb file using the following:

mesh = o3d.io.read_triangle_mesh(mesh_path, enable_post_processing=True)

And then visualising:

o3d.visualization.draw_geometries(draw_geoms_list), point_show_normal=True, mesh_show_wireframe=False, mesh_show_back_face=True)

But the model that appears jitters when I orbit around it - see the video.

https://github.com/isl-org/Open3D/assets/78753319/2da98014-0abb-48a5-a942-61bc02098788

When I save the mesh as a .glb file using the following:

o3d.io.write_triangle_mesh("test_output.glb", mesh)

It appears it saves these glitches to the mesh, because when I open it up on an online viewer (e.g. https://gltf-viewer.donmccurdy.com/), those glitches also appear here. Note that the original .glb file opens just fine on this web viewer.

I also get the attached verification report from the web viewer.

validation

I'm using version 0.17.0 of Open3D in Python 3.10, running on Windows 10 (Intel 11th Gen i9, 64Gb RAM, GPU installed but not used).

Steps to reproduce the bug

mesh = o3d.io.read_triangle_mesh('mesh.glb', enable_post_processing=True)

o3d.io.write_triangle_mesh("test_output.glb", mesh)

Error message

No response

Expected behavior

No response

Open3D, Python and System information

- Operating system: Windows 10 64-bit
- Python version: 3.10
- Open3d version: 0.17.0
- System architecture: x86
- Is this a remote workstation?: No
- How did you install Open3D?: pip
- Compiler version: N/a

Additional information

I'm noticing I'm getting multiple of these warnings when I'm orbiting around the 3d model:

[Open3D WARNING] GLFW Error: WGL: Failed to make context current: The requested transformation operation is not supported.

theNded commented 1 year ago

Postprocessing might have messed up the texture and/or UV coordinates. Would it be possible that you share the file somewhere? I will try to take a look at it. Thank you!