Closed echadwick-artist closed 4 months ago
The sample viewer does not support decoding WebP images. While the spec only allows image/jpeg
and image/png
as image mime types, the schema does not enforce any specific mime type, which is maybe why the validator does not complain.
Ah, thanks.
It seems to me the sample viewer should support all ratified extensions.
This asset uses the last one on the list, EXT_texture_webp
The error message is better now, but WebP was ratified some time ago. It should be supported here.
Result: no errors. This is as expected.
Result: Two problems: a) Error message "Image is undefined for texture undefined", which appears on load, and every time model is moved. b) Occlusion debug view shows incorrect texture.
glTF Validator reports no problems for the GLB with webp textures.
GlassBrokenWindow_webp.zip
Thanks for looking into this! Eric