demonixis Posted April 30, 2014 Share Posted April 30, 2014 Hi, 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 Yann. Edit: Ok I just seen SceneSerializer, it's awesome \o/ var serializedScene = BABYLON.SceneSerializer.Serialize(scene);var strScene = JSON.stringify(serializedScene); GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 30, 2014 Share Posted April 30, 2014 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 30, 2014 Share Posted April 30, 2014 It is a beta version of serializer. Expect some bugs perhaps Quote Link to comment Share on other sites More sharing options...
demonixis Posted May 2, 2014 Author Share Posted May 2, 2014 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. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 2, 2014 Share Posted May 2, 2014 Happy you liked it:) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.