Puck Posted May 23, 2018 Share Posted May 23, 2018 I've been looking over the documentation and samples for Babylon looking for a way to load a scene or mesh directly from memory, and I noticed in the documentation it says this: Quote a string that defines the name of the scene file. can start with "data:" following by the stringified version of the scene What does that mean exactly? I looked at the source too and can't figure out what kind of format it expects? Data url? Straight base64? Binary as a UTF16 string? Alternatively, is there another way to load things from memory instead of from file? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2018 Share Posted May 24, 2018 Hello and welcome! Here is an example: https://www.babylonjs-playground.com/#I6RJJ#56 and yeah that's the best way to load from memory Quote Link to comment Share on other sites More sharing options...
Puck Posted May 24, 2018 Author Share Posted May 24, 2018 Oh, so JSON. I understand now. Thanks Deltakosh! 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.