Dad72 Posted March 22, 2014 Share Posted March 22, 2014 Hi, I see that we can serialized a complete scene.But can serialize us just an object. I have a scene or I create a character changing textures, name, class, race, gender... by an interface and I would like to be able to serialize this character to go on the next scene which is another html page. Would it be possible to do that, or is that this could add a babylon Thanks Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 23, 2014 Share Posted March 23, 2014 Hi, In babylon there is a local function called 'serializeMesh', and several others (serializeCamera, lights, materials, ..)If I were you, I would update my library babylon1.9.0.js into babylon1.9.dadVersion.js, make this function public and add it in the babylon namespace. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted March 23, 2014 Author Share Posted March 23, 2014 Ah, I had not seen that this was already possible. Thank you. I is not understand what you mean by: update my library babylon1.9.0.js into babylon1.9.dadVersion.js, make this function public and add it in the babylon namespace. Quote Link to comment Share on other sites More sharing options...
gwenael Posted March 27, 2014 Share Posted March 27, 2014 If you are on Windows, just add the function in the right file and use https://github.com/BabylonJS/Babylon.js/tree/master/Tools/BuildOurOwnBabylonJS (there is a readme.md), it will generate ourBabylon.js which will be your babylon1.9.dadVersion.js . Otherwise I think you can use https://github.com/BabylonJS/Babylon.js/tree/master/Tools/Gulp 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.