GltfLoader Buffer Not Loading

gltf-loader
#1

I have a Threejs scene within an Angular web application I am developing. The gltf model is not loading. Within my ‘assets’ folder is my model.gltf and model.bin file. If I look in the Chrome developer tools Network tab I can see that the .gltf file is loading but the .bin file is not listed as either successful or failed, but it hasn’t loaded.

The web application is published within a sub-directory in IIS and the html Base Href is set accordingly. The rest of the web application runs fine. If I point IIS at the web app parent folder the .bin file fails to load. If I point IIS at the Angular ‘dist’ folder within the web app parent folder the .gltf and .bin file load, I can see them both loaded in Chrome dev tools and the 3D model is displayed.

Can anyone suggest where I am going wrong please?

#2

I don’t think this issue is related to three.js but to your web server configuration. I suggest you make a test with a node.js based webs server for example:

If the problem still persists, please share your repository for debugging. If it works, it’s maybe better to ask for help at the IIS community or at stackoverflow.