KhronosGroup / glTF-Validator

Tool to validate glTF assets.
Apache License 2.0
366 stars 60 forks source link

Validation error for missing bufferView in sparse accessors #207

Closed elrnv closed 1 year ago

elrnv commented 1 year ago

When validating a GLTF file with a sparse accessor that intentionally omits a bufferView, the spec permits this, however the validator complains:

238094761-100ce15b-dd97-419b-8ce4-cdd787e72bed

A sample file can be found here: https://github.com/elrnv/gltfgen/raw/master/assets/tet_and_tri_expected.glb

Moved issue from: https://github.com/AnalyticalGraphicsInc/gltf-vscode/issues/249

lexaknyazev commented 1 year ago

Since there is no buffer view, byteOffset must not be defined.