prvi_treti Posted February 28, 2016 Share Posted February 28, 2016 Hello there, As title rather implies, I just wondered if we can have a temporary asset during loading time. As assets can sometimes be tens of MB, it might be better to load a generic one only to replaced when actual asset is loaded. It is ( and I am ) more sprite oriented but Simcity 4 had a feature of showing a generic box when mod files are missing as seen here What I consider is using SVG outline of real sprite while loading but this can also be applied to 3D ones until certain extent I believe. As far as I know, there is no such feature but wondered if it would worth trouble to implement. Best regards, Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 28, 2016 Share Posted February 28, 2016 Hello there is no direct support but you can think about loading first a really small texture and onLoad=function(){ load the big one} prvi_treti 1 Quote Link to comment Share on other sites More sharing options...
eboo Posted February 28, 2016 Share Posted February 28, 2016 here is what i use: first of all i ve a simple box named "no3D" with a simple box texture. (this mesh is stored in a array) then, i use 2 functions to place meshes place(what,x,y) i five my elements a name : what_x_y unplace(what,x,y) (unload ^^) function unplace(koi,x,y) {scene.getMeshByName(koi+'_'+x+'_'+y).dispose();} so when i use assetsManager i have somethink like: if( unknow element) { assetsManager.reset(); place("no3D",x,y); var aTask = assetsManager.addMeshTask(koi, "", "bb/"+koi+"/", koi+".babylon"); aTask.onSuccess = function(task) { unplace("no3D",x,y); ... }; assets.Manager.load(); } Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 29, 2016 Share Posted February 29, 2016 I guess a PG would be easier Quote Link to comment Share on other sites More sharing options...
prvi_treti Posted February 29, 2016 Author Share Posted February 29, 2016 14 hours ago, Deltakosh said: I guess a PG would be easier Glad we all know what a PG is Quote Link to comment Share on other sites More sharing options...
jerome Posted February 29, 2016 Share Posted February 29, 2016 http://www.babylonjs-playground.com/ PG = playground Quote Link to comment Share on other sites More sharing options...
eboo Posted February 29, 2016 Share Posted February 29, 2016 well... is there any .babylon that we can load from PG ? ^^ Quote Link to comment Share on other sites More sharing options...
prvi_treti Posted February 29, 2016 Author Share Posted February 29, 2016 2 hours ago, jerome said: http://www.babylonjs-playground.com/ PG = playground Oh, was expecting it to be a coding feature even though I ofc know playground. Quote Link to comment Share on other sites More sharing options...
eboo Posted February 29, 2016 Share Posted February 29, 2016 example : http://www.babylonjs-playground.com/#26SGVY#0 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.