https://github.com/donmccurdy/three-gltf-viewer how three js Gltf is validating if all textures are present in the uploaded directory or not??? it also gives error if some texture file is not present.
Try it with this npm
package:
this is not working in react js for browser!
import * as validator from 'gltf-validator';
fetch('scene.gltf')
.then((response) => response.arrayBuffer())
.then((asset) => validator.validateBytes(new Uint8Array(asset)))
.then((report) => console.log('Validation succeeded: ', report))
.catch((error) => console.error('Validation failed: ', error));
everytime getting error -> Invalid data: could not detect glTF format
SketchFab GLTF file : Gltf File