I am wondering if there is a way to wait for blob textures to load after the glb model has loaded
I’ve managed to wait for my models to load using this:
loader.load('/scene2.glb', function(gltf2) {
model2 = gltf2.scene;
gltfPlayer = gltf2;
gltf2.scene.traverse(function(child3) {
if (child3.isMesh) {
loaderGL++;
roughnessMipmapper.generateMipmaps(child3.material);
}
});
scene.add(model2);
roughnessMipmapper.dispose();
});
if(loaderGL === 10) {
//Loaded Do Something
}
Probably not the best way but it works I’m loading more than one model so add loaderGL++ to each scene.traverse(function(child3) anyways this doesn’t wait for blob textures to load though how can I wait for those?