Jump to content

Import Zip Obj


Recommended Posts


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 ?






Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...