Hi all! I’m trying to import a 3d model into three js. I am using the code that is written in the documentation:
const loader = new GLTFLoader();
loader.load(
‘/static/assets/scene.glb’,
function ( gltf ) {
scene.add( gltf.scene );
}
);
, but for some reason it gives the following errors:
GET http://localhost:3000/static/assets/scene.glb 404 (Not Found)
HttpError: fetch for “http://localhost:3000/static/assets/scene.glb” responded with 404: Not Found at three.module.js:41869:1
What can this be related to? The path seems to be correct, the library three js and GLTFLoader imported.
Thanks in advance!