Answer the question
In order to leave comments, you need to log in
How to track the progress of loading a model if it consists of several files?
I need to make a 3d model viewer using three.js. The model decided to load separately from the scene via the gltf loader. I did it as written in the documentation, but the problem is that only the head file is tracked, which weighs a little. Accordingly, the download process is displayed only for this file, but I need to track just the file that is pulled up later (it weighs 100 times more). The documentation does not say anything about this, maybe someone knows how to be? Here is a link to the project I'm working on: https://bqct.tech/3d-viver/ load events are displayed in the console
loaderG.load( 'scene.gltf', function ( gltf ) {
console.log('load');
scene.add( gltf.scene );
}, progres, function ( error ) {
console.error( error );
alert('error');
} );
function progres(e) {
console.log(e);
}
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question