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
Post a Comment