Hello! I’m trying to load a .gltf file with the GLTFLoader() function. But when I run the code it dosen’t work I just get the error message that the function couldn’t found the file… Have someone else had this problem with GLTFLoader, how did you solve this problem???
const loader = new GLTFLoader();
loader.load( 'assets/scene.gltf', function ( gltf ) {
const model = gltf.scene;
scene.add( model );
}, undefined, function ( e ) {
console.error( e );
});