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? 回答1: 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