I am experiencing issues when converting .png images with alpha to .ktx2. Some work, but the major don’t.
Here is what i get when i drop them in the sandbox:
The error isn’t very informative…
I am converting them with this call: toktx.exe --lower_left_maps_to_s0t0 --t2 --bcmp out.ktx2 in.png
Maybe somebody here has experience with converting .png images with alpha.
I don’t know much about driver limitations, but there is some discussion about it here for KTX in glTF. For full compatibility, the source should probably be a POT texture. @Evgeni_Popov perhaps we should check for this, decode to raw when the texture is not a multiple of 4, and resize? We already do something similar for NPOT on WebGL1. We should log a warning if we decide to do this.