KhronosGroup / glTF-Validator

Tool to validate glTF assets.
Apache License 2.0
372 stars 63 forks source link

invalid error: URI_GLB #195

Closed malytomas closed 2 years ago

malytomas commented 2 years ago

According to specification: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#glb-file-format-specification-general it is allowed to have references for external textures. However, the validator issues an error stating that it is not allowed.

gltf-validation

Testing file:

meshes.zip

lexaknyazev commented 2 years ago

URI_GLB is reported with severity 2, i.e, it's an Info, not an Error.

The only error in this report is IO_ERROR likely caused by not dropping both files (GLB and PNG) to the web-based validator window.

malytomas commented 2 years ago

Oh, I thought higher severity is more bad. Thanks for explanation.

donmccurdy commented 2 years ago

A bit of extra context — by convention, .glb files are usually self-contained and .gltf files usually have external resources. I would encourage public, user-facing tools to stick to those conventions. But it is not required, and there are rare times you might want to do otherwise.