pranoy Posted January 3, 2016 Share Posted January 3, 2016 Hi, We have used asset manager to import meshes into scene with the default loading UI. How can we show the progress of the load as can be seen in the link http://webtrude.com/Models/hs00/trial4 Also can anyone post a babylonjs playground example for implementing a custom loading UI. Thanks Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 3, 2016 Share Posted January 3, 2016 Hi,Something like this: BABYLON.SceneLoader.Load(rootScene, strSceneData, engine, function (newScene) { }, function (evt) { if (evt.lengthComputable) { engine.loadingUIText = "Loading:" +(evt.loaded * 100 / evt.total).toFixed() + "%"; } else { dlCount = evt.loaded / (1024 * 1024); engine.loadingUIText = "Loading:" + Math.floor(dlCount * 100.0) / 100.0 + " MB"; } }); Quote Link to comment Share on other sites More sharing options...
pranoy Posted January 3, 2016 Author Share Posted January 3, 2016 We have implemented this for sceneLoader but how can we implement this with asset manager? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 3, 2016 Share Posted January 3, 2016 Good question ... I do not know. I do not think it has been provided for Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2016 Share Posted January 4, 2016 This?http://doc.babylonjs.com/tutorials/Creating_a_custom_loading_screen Quote Link to comment Share on other sites More sharing options...
Dad72 Posted January 4, 2016 Share Posted January 4, 2016 for asset manager it works too? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 4, 2016 Share Posted January 4, 2016 Yep Quote Link to comment Share on other sites More sharing options...
pranoy Posted January 7, 2016 Author Share Posted January 7, 2016 Could you show a demo of how to use the custom loading screen . 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.