Is there a proper way to incorporate a loading bar while using the ColladaLoader
?
The code indicates that the loader requires three parameters, with one being a progressCallback
.
progressCallback( { total: length, loaded: request.responseText.length } );
When I call a function for the progressCallback
to showcase the values, the total
appears as null and the loaded
reaches 5,200,000.
function(callback){
console.log(callback.loaded + ' / ' + callback.total);
}
How can I include a percentage of the loaded elements using the ColladaLoader
?