KHR_texture_basisu support

Hi!

It looks like https://sandbox.babylonjs.com/ isn’t able to load .glb files compressed with gltfpack using the -tc tag.

Reproduction:
Try to load the following models into the sandbox:
-uncompressed (it loads): inn3r.com/uncompressed_pyramid.glb
-compressed (shows an error): inn3r.com/compressed_pyramid.glb

I had no problems converting to ktx

gltf-transform etc1s uncompressed_pyramid.glb output2.glb

*info: uncompressed_pyramid.glb (377.76 KB) → output2.glb (36.42 KB)

File is here - https://github.com/eldinor/ForBJS/blob/master/output2.glb?raw=true

5 Likes

I was using the gltfpack npm package and binary file. With gltf-transform package it works!