Open flippedcracker opened 2 years ago
libktx2 has VERY limited transcoding features and I assumed hoped I used them correctly. But I have no "compressed" texture on which I can test it on. Could you link/upload an image where it fails, so I can check if I overlooked something obvious?
I uploaded as a .ktx.jpg because it wouldn't let me directly upload a .ktx file. Let me know if that worked.
You have sent a ktx1.1 file compressed with COMPRESSED_RGB_S3TC_DXT1_EXT
. ktx1.1 is problematic anyway, so I converted it to ktx2, then the data is called BC1_RGB_UNORM_BLOCK
.
libktx contains transcoding functionality to decode supercompression to RGBA32
, but BC1
to RGBA32
is not supported (as the focus of libktx is purely GPUs and they can do it in hardware). This leaves me with compressed data and gimp (or more precisely babl) does not support BC1
, meaning I would have to decompress the image data myself into something useful.
As I do not have time to integrate an BCx
decompressor, all I can offer is to improve the error message which I will do shortly.
rewriting the plugin to use https://github.com/hglm/detex instead of libktx could solve this, but would be considerable effort
Thank you for looking into it and your thorough explanation.
I will do this as soon as I have time for it
I think I've installed this plug-in correctly. I'm able to export as KTX2. But I can't import KTX or KTX2 files, unless it's one that I've exported myself. When running install.sh, I get these results: