Hi there,
my application is a little bit atipical. I’m developing a 3D scene embedded in Chromium browser inside our application. So, we can’t (we/they don’t want ) use an http server to serve the 3D scene and all the resources are accessed only from file system: CORS violation!
So i use all images for textures and even for environment as base64 strings hardcoded in my js files.
All work fine, CORS is respected and the application can run as aspected.
The question is: if i need in future (and i think i really need) to import some external meshes (i.e. .stl file or .obj) can i use a similar technique? Is there a way to embed this meshes directly inside my .js file and then use them like i did with base64 images?
Thanks