I’m trying to load a gltf with some ktx2 textures. With some models it works correctly, but with others it throws the following error:
I tried https://gltf-viewer.donmccurdy.com/ viewer from @donmccurdy and it works as expected. I use the following code to load the gltf:
const loader = new GLTFLoader();
const loaderKTX2 = new KTX2Loader();
loaderKTX2.setTranscoderPath('scripts/basis/');
loaderKTX2.detectSupport(renderer);
loader.setKTX2Loader(loaderKTX2);
const loadedData = await loader.loadAsync(modelUrl);
loaderKTX2.dispose();
Any suggestions will be greatly appreciated!