LoadAsync persentage loader

Hi all!

I am trying to use the async loader to load a list of glb models in my scene but I cannot find a way to get the percentage of loading . I can read only the loaded bytes, while the total is always equal to zero

const loader = new GLTFLoader();

const [scenedata] = await Promise.all([

loader.loadAsync(model, (e) => console.log("Loading", e.loaded)),

]);

any ideas how to get the percentage ?

three.js FileLoader checks for ‘Content-Length’ HTTP header to determine the total size of any asset. Try to make sure that your server is setting this on the response, other-wise it will be 0.

1 Like