json - How to make a loading screen while using three.js and jsonLoader? -


i have large amount of texture files , models load project. trying show status bar or sort of loading screen while loading. if give me info on how awesome.

thanks!

the minimum required code this:

three.defaultloadingmanager.onprogress = function ( item, loaded, total ) {     console.log( item, loaded, total ); }; 

instead of printing console can example start rendering loop "if loaded == total". or/and can update loading indicater. (the code 1 of examples.)


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -