yLacaute Posted March 15, 2018 Share Posted March 15, 2018 Hi, As the babylon format is a simple JSON file, is there a way to load it directly from code ? (if you already have a javascript variable equals to a babylonJS file) Thanks Quote Link to comment Share on other sites More sharing options...
MarianG Posted March 15, 2018 Share Posted March 15, 2018 Something like this? https://www.babylonjs-playground.com/#1SQFJP#14 line 18 yLacaute 1 Quote Link to comment Share on other sites More sharing options...
yLacaute Posted March 15, 2018 Author Share Posted March 15, 2018 Yes Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted March 15, 2018 Share Posted March 15, 2018 var loader = BABYLON.SceneLoader.GetPluginForExtension('babylon'); loader.load(scene, data); This is another way. Remember that textures, unless in the data var are still going to load async. 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.