Facing an issue with creating a loading message while loading a texture for a scene. The onProgress console.log message is only triggered once the texture has finished downloading and not during the process.
manager = new THREE.LoadingManager();
manager.onProgress = function () {
console.log('loading');
};
manager.onLoad = function () {
console.log('loaded');
};
manager.onError = function () {
console.log('there has been an error');
};
var textureLoader = new THREE.TextureLoader( manager );
var planetTexture = textureLoader.load('/assets/images/planet/{{page.planet}}/{{page.planet}}.jpg');
Tried looking through examples but couldn't understand how it's done in this obj loader example