How to show a gif image loader to indicate the status of the model on before load the 3d models using OBJMTLLoader
orAssimpJSONLoader
? am using three.js version 67 and am using below code load the gif loader, but the function doesn't have any effect while load the model
var loadManager = new THREE.LoadingManager();
loadManager.onProgress = function ( item, loaded, total ) {
alert('hi');
console.log( item, loaded, total );
};
var objloader = new THREE.OBJMTLLoader(loadManager);
what am doing wrong here, am missing anything?