NasimiAsl Posted May 4, 2016 Share Posted May 4, 2016 hi i have 204 mesh in my project and i need to know when all is ready( full load with all material) how can i know ? Quote Link to comment Share on other sites More sharing options...
lesterhaus Posted May 4, 2016 Share Posted May 4, 2016 Hey, Since this sounds almost too straight forward I'm pretty sure it is wrong.. but in the hope of learning something new I'm still gonna suggest it.. Shouldn't this be a case for scene.executeWhenReady which you can call inside the scene loaders callback function? NasimiAsl 1 Quote Link to comment Share on other sites More sharing options...
Samuel Girardin Posted May 4, 2016 Share Posted May 4, 2016 Hi @NasimiAsl, You can use BABYLON.AssetsManager I think it can do the job [edit] In fact it can do the job if you download texture separated from your models. And you assign them after. Quote Link to comment Share on other sites More sharing options...
adam Posted May 4, 2016 Share Posted May 4, 2016 http://doc.babylonjs.com/classes/2.3/AssetsManager#onfinish-tasks-iassettask-gt-void Quote Link to comment Share on other sites More sharing options...
adam Posted May 4, 2016 Share Posted May 4, 2016 Maybe the AssetsManager onFinish callback isn't what you need. It fires when the assets are all loaded, not when the meshes are ready: http://www.babylonjs-playground.com/#28YUR5#53 Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 4, 2016 Author Share Posted May 4, 2016 thanks all let me test AssetsManager Quote Link to comment Share on other sites More sharing options...
adam Posted May 4, 2016 Share Posted May 4, 2016 here is when scene.executeWhenReady is called: http://www.babylonjs-playground.com/#28YUR5#54 thanks lesterhaus Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted May 4, 2016 Author Share Posted May 4, 2016 thanks all this very help 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.