Repository navigation
Give a clear error when a glTF/GLB requires an unsupported extension - #12858
Merged
rerun-sync[bot] merged 1 commit intoJul 23, 2026
Merged
rerun-sync[bot] merged 1 commit into
rerun-sync[bot] merged 1 commit into
Conversation
Loading a Draco- or meshopt-compressed glTF/GLB previously surfaced the raw
`gltf` validation error ("invalid glTF: extensionsRequired[0] = ...:
Unsupported extension"), which doesn't tell the user what to do about it.
`gltf::import_slice` rejects unsupported `extensionsRequired` during validation
before any geometry is read, so on that error we re-parse without validation
(`Gltf::from_slice_without_validation`) to name the offending extensions and
suggest re-exporting uncompressed.
Part of rerun-io#6365.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
There was a problem hiding this comment.
Hi! Thanks for opening this pull request.
Because this is your first time contributing to this repository, make sure you've read our Contributor Guide and Code of Conduct.
Wumpf
approved these changes
Jul 23, 2026
Wumpf
left a comment
Member
There was a problem hiding this comment.
Neat, thanks for improving this!
Member
|
@rerun-bot reality-sync |
Contributor
|
Sync complete. Mirror PR in reality: https://github.com/rerun-io/reality/pull/2790 Triggered by @Wumpf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Loading a Draco- or meshopt-compressed glTF/GLB currently surfaces the raw
gltfcrate validation error:which names the extension but doesn't tell the user what to do. This maps that case to an actionable error instead:
How
gltf::import_slicerejects unsupportedextensionsRequiredduring validation, before any geometry is read (verified against gltf 1.4.1), so the previously-hypothesized "mesh has no triangles" path never triggers. On theimport_sliceerror we re-parse withGltf::from_slice_without_validationpurely to recover and name the required extensions.This is the "give a decent error message" slice of #6365 — it does not add Draco/meshopt decoding.
Confidence / disclosure
Written with the help of a coding agent (Claude), reviewed by me. Confidence is high: the change is small and localized to the import error path, the underlying
gltfbehavior was verified empirically, and there's a unit test covering the extension-naming. I'm less familiar with how this error ultimately renders in the viewer UI, so pointers there are welcome.Part of #6365.