kovacsv / assimpjs

The emscripten interface for the assimp library that allows you to import 40+ 3D file formats in the browser.
MIT License
121 stars 18 forks source link

Loading the WASM file question #13

Open stevedekorte opened 10 months ago

stevedekorte commented 10 months ago

First, thanks Viktor, for creating this extremely useful library! I've found it to work much better on my .obj files than the built-in loaders for three.js and babylonjs.

My question: I'm writing a browser app that needs to load very quickly so I'm caching all my resources in IndexedDB on the client side so only the very first load needs to read the source files and other resources (it only loads a package list and verifies the hashes of the cached files). This works well, but assimpjs's loading of its WASM file doesn't work this way. Is there a way I can just hand assimpjs an Blob or ArrayBuffer for the WASM file instead of assimpjs trying to do a request for it?