I was trying in implement a progress bar to tell my users that “something is happening” but I need to load a 50MB file (.bin, .gltf). The documentation says:
GLTFLoader.load(
url to the glTF file,
onLoad function,
onProgress (console.log( ( xhr.loaded / xhr.total * 100 ) + ‘% loaded’ )
error function
)
My problem is that the onProgress function monitors the glTF file (.glTF, 200kb) and not the .bin (50MB) and shows 100% after 1sec.
How can I make the OnProgress function monitor the .bin file?
Thank you,
Eric