For the past few hours, I've been struggling to understand how I can create a .js importer similar to the functionality in the Three.js Editor. I want users to be able to easily load a .js file from a 'file load' pop-up.
Despite searching on Stack Exchange, I haven't been able to find a solution to my problem. It seems like either I'm missing something obvious or the issue I'm facing isn't getting the attention it needs.
I've successfully managed to export meshes and textures from my Three.js file to a 'file.js' format. However, my goal is to be able to reload these files into an existing Three.js scene seamlessly.
After spending hours going through the code in the editor, I still can't figure out how to import a .js file that contains basic geometry and textures. The Editor can do it effortlessly, displaying textures and alpha, but I'm struggling to get it to work for me. It's been frustrating to say the least...