mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Loading a model with .webp texture causes map to be unusable

Open joshnice opened this issue 1 year ago • 2 comments

When loading a model into Mapbox that uses a .webp texture causes the map to throw an error.

Error which gets thrown is this Image

I have an example of it happening here: https://jsbin.com/geziwamepu/1/edit?html,console,output

In the example are two different models, one with PNG texture and one with a WEBP texture. I can't attach examples of the models which don't work but the example above has some on.

joshnice avatar Mar 06 '25 14:03 joshnice

A model with a webp texture can be found here: https://model-repo-488fcbb8-6cc3-4249-9acf-ea68bbdda2ee.s3.eu-west-2.amazonaws.com/model-with-image-webp.glb

joshnice avatar Mar 08 '25 08:03 joshnice

Hey @joshnice, Thanks for pointing it out.

Webp is an extension to gltf that is indeed not supported in Mapbox right now. We will try to include this in upcoming releases.

jtorresfabra avatar Mar 10 '25 10:03 jtorresfabra