Catching errors in GLTF textures

We are using a glTF extension to intercept the images array in the GLTFLoader, since the textures will change based on data inputs. One thing we’d like to do is capture errors if our code incorrectly tries to fetch an image that does not exist. But the GLTFLoader happily loads in the black and red fallback texture and does not throw any errors.

Is there an easy way to catch errors in loading images with the GLTFLoader?

Pinging @bghgary

1 Like

@Alex_B Do you mind creating a playground with what you are doing? That will help a lot. Thanks.

1 Like

I’m trying to get it set up. For some reason I’m seeing different behavior in the playground. Trying some stuff…

1 Like