isl-org / isl-org/Open3D

Bugs when working with .glb files

Open
#6,275 1 comment 0 reactions 0 assignees View on GitHub
bug mesh
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'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](https://github.com/isl-org/Open3D/assets/78753319/83297bfb-e564-4949-87d6-92791c1151a0)

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

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

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

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.