KhronosGroup / glTF-Sample-Assets

To store all models and other assets related to glTF
255 stars 30 forks source link

Invalid KHR_texture_basisu usage in AnisotropyBarnLamp.gltf #117

Closed donmccurdy closed 1 month ago

donmccurdy commented 2 months ago

In the AnisotropyBarnLamp.gltf sample, the .ktx2 textures are embedded without the required extensions:

https://github.com/KhronosGroup/glTF-Sample-Assets/blob/cfbe2f9ac259490855940ff85feb5b4b02386046/Models/AnisotropyBarnLamp/glTF-KTX-BasisU/AnisotropyBarnLamp.gltf#L312-L333

Compare to the examples in the spec. A quick way to fix this is to read/write the model with glTF Transform, which will automatically append the missing extensions:

gltf-transform cp input.gltf output.gltf
echadwick-artist commented 1 month ago

That's what I get for editing raw JSON. Thanks for the issue!