hw3web Posted March 5, 2014 Share Posted March 5, 2014 Is there any way to create function - as progress, and final call For all scene when is loaded on page , models texture , effect - so is pure offline from this moment on and all is on stage ? As I use progress when loading model after is finish it take few more moments to show all - that I would like to hide as it is not nice to see each model adding to scene. Thank you Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 5, 2014 Share Posted March 5, 2014 I'm not sure to understand your need Quote Link to comment Share on other sites More sharing options...
hw3web Posted March 6, 2014 Author Share Posted March 6, 2014 is there any call back function when scene is fully loaded on page , and finish loaded all textures , as I make temporary texture that i want delete after loaded on stage, but when I use scene.executeWhenReady(function () sometimes specially with large models by the time when he try load texture their are already deleted (as I want them delete to not have as many files on server as many load scene) ! hope it is more clear now, sorry Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 6, 2014 Share Posted March 6, 2014 you can check for scene.isReady() during your render loop Artem 1 Quote Link to comment Share on other sites More sharing options...
hw3web Posted March 7, 2014 Author Share Posted March 7, 2014 it will not slow down engine - , all times check even long after is done ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 8, 2014 Share Posted March 8, 2014 You can stop checkling when IsReady return true. BTW this is a cheaper call Quote Link to comment Share on other sites More sharing options...
Artem Posted March 11, 2014 Share Posted March 11, 2014 I was looking for 'scene.isReady()' as well, thanks a lot, 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.