isl-org / isl-org/Open3D

Wrong byteOffset when exporting to GLTF.

Open
#4,376 2 comments 1 reaction 0 assignees View on GitHub
io
Dominant language
C++
Stars
14k
Forks
2.6k
Avg merge
5d 18h
Merged PRs (30d)
6

Description

When reading triangles from STL and then writing the result to GLB file, depend on indices amount the wrong byteOffset is calculated. As a result some of the libraries assemble wrong positions of vertices.
I've created a repo where the problem is reproduced (see the export.py script): https://github.com/dperyel/open3d-gltf-bug
The repo contains an STL file which will be incorrectly exported.
After running a glb validator I got a report with the errors, you can see them in here: https://github.com/dperyel/open3d-gltf-bug/blob/master/out_report.json

- Operating system: OS, Win, Ubuntu
- Open3d version: 0.13.0 installed with both pip and conda
- Python version: 3.8

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.