Loading assets into three.js using File API
I'd like to create the functionality to import a 3D model to view in the browser by using the File API . The three.js loaders work great on files that I host. My understanding is that the loader uses ajax to retrieve the file. I'd like to be able to load the file from disk on the client to view it. How might this be accomplished? You can override or "hot patch" the loaders' load() function to fit your needs. Put your overrides before any other THREE.js -related code. For example: THREE.OBJLoader.prototype.load = function(url) { // copy the function from OBJLoader.js source and change the AJAX