KhronosGroup / KhronosGroup/UnityGLTF

GLTFs need more validation on import

Open
#366 0 comments 0 reactions 1 assignee Claimed by @hybridherbst View on GitHub
enhancement
Dominant language
C#
Stars
2.2k
Forks
536
PR merge metrics
No merged PRs in 30d

Description

Files failing validation by the official GLTF validator github.khronos.org/glTF-Validator don't necessarily fail import. Such cases should throw exceptions. A particularly severe example is importing a glb with some vertex coordinates being float infinity. This then causes Unity asserts for bounding box creation to fail in-Editor, or in UWP Unity apps causes a crash when Unity tries to create a physics collider from the mesh. The importer should check for such invalid things. It also seems to miss non-unit vectors when unit vectors are expected (also flagged by the validator).

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.