Jump to content

Exporting a babylon scene to a file


Recommended Posts



For one of my project, I need to export a scene from the browser to a file. My goal is to write a custom babylon importer for another engine (a mobile engine). My importer is already done and now I need to export scenes from Babylon.


Can I do this easily ? (maybe there are a super functions I missed ?)


Thanks for your answers 




Edit: Ok I just seen SceneSerializer, it's awesome \o/ 

var serializedScene = BABYLON.SceneSerializer.Serialize(scene);var strScene = JSON.stringify(serializedScene);
Link to comment
Share on other sites

My exports seems to be correct for now. I need to finish my custom importer and see if it works or not ;) For now I just need informations about meshes (vertices, uvs, normals) and materials, no needs for animations, cameras, collisions, etc..


I like the .babylon format, it's JSON so it's easy to deal with it in many languages, and the structure of the file is clean. 

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...