glTF-Validator icon indicating copy to clipboard operation
glTF-Validator copied to clipboard

Support resources in subdirectories in the Drag-And-Drop interface

Open javagl opened this issue 2 years ago • 0 comments

When dragging-and-dropping a .gltf file that refers to a resource (texture or buffer) that is contained in a subdirectory, together with that subdirectory, into the Drag-And-Drop interface, the validator complains about missing resources.

Common viewers (Like https://gltf-viewer.donmccurdy.com/ or https://sandbox.babylonjs.com/ ) are able to resolve these resources when they are dropped together with the .gltf file (and they run the validator on them, and are not causing errors in this case...)

I think the validator should be able to resolve these resources as well.

As an example, the "Duck" asset, modified to put the texture and buffer into subdirectories.

Duck with subdirectories.zip

javagl avatar Jul 07 '23 21:07 javagl