I’m not familiar with astro but if it functions anything like other bundlers you’ll need to move your model directory out of the src folder and into a “public” directory on the same level as src and load from ./model/
true, /src/… is not a valid path. /src is virtual, it does not exist, it will be squashed into a single javascript file later on and all directories will vanish.
if you have placed it into /public it will most likely still fail because of the sub directory “model gltf (1)”. a gltf is a container file, it links towards external files and gltfloader defaults to “/”, so it will look for “/Gear2.bin” for instance, not “/model gltf (1)/Gear2.bin”.
you can fix that by call the setResourcePath method on gltfloader
but the root of the problem is that you should not use gltf on the web but glb, which is smaller and contains all files