Hi everyone,
I am new here. I have used GLTFLoader to load files from server and I like this file format very much because it is well supported by threejs. However, recently I needed to load many files to the scenery at the beginning of the game and it would be a bit unfriendly to a player to wait for loading such files and he don’t know what happened. And the cache would be sometimes cleaned by the browser. Thus, I would like to provide .gltf files and read files from the local file system of the browser. Is it impossible?
I just read the gltfloader.js from github and found that it would call a file loader, which would use xmlhttprequest to get the resource file from the server. Can I use an address located in local file system? Or can I change parts of this file to implement this function? Have anyone tried this yet?