Search the Community
Showing results for tags 'zip'.
-
i have zip file contains multiple obj and mtl files on a node js server i was wondering how load the content of the obj files inside the zip file
- 1 reply
-
- babylon.js
- zip
-
(and 1 more)
Tagged with:
-
Hey, I'm currently successfully loading glb files through the `BABYLON.SceneLoader.ImportMeshAsync('', rootURL, filename, scene)` method. I was wondering if (for loading times) it was possible to import meshes from a zip file containing the glb one. I could unzip and get the GLB file but, all I have is it's content but not its path. Is there a way to provide ImportMesh or ImportMeshAsync the content to load instead of its path ? Thanks in advance !
- 6 replies
-
- sceneloader
- zip
-
(and 2 more)
Tagged with:
-
Hey. I have a 20 MB babylon file on my server right now. I don't want my server to compress it every time. Instead I'd like to put a babylon.gz on my server and load the babylon file. Is that possible? I've tried to change the filename in the SceneLoader to "test.gz" instead of "test.babylon" but that didn't work..
-
Hello, For a test, I download a zip file. I extract files with JSZip. All files are OBJ files. I use babylon.objFileLoader for OBJ files. After extraction, I try to use BABYLON.SceneLoader.ImportMesh with rawData like this : var rawData = "data:" + contentOfFiles; BABYLON.SceneLoader.ImportMesh("", "model.obj", rawData, scene, function(){ console.log("Success"); }, function(){ console.log("PROGRESS"); }); But that's not work :((( I receive this message : importMesh of undefined from undefined version: undefined, exporter version: undefined importMesh has failed JSON parse Someone have an idea ? How can I import mu obj files ? Thanks Loïc
-
What do you think about loading complex scenes from zip files then reading them with a library such as JSZip? Wouldn't it be far faster to load 1 zip containing 200 files than to load 200 files individually? (mainly due to avoiding overhead) Is there a downside to doing that?