Babylon.js throws an error when loading my .kxt2 files that i created using the toktx.exe and the --automipmap flag:
Failed to load KTX2 texture data: TypeError: e.mipmaps[0] is undefined
Afaik the difference is that --automipmap texture asks the loader to create mipmaps whereas the --genmipmap texture already includes the mipmaps. Here is a playground with a .kxt2 file created with --automipmap and one .ktx2 file created with --genmimap.
The ktx2 khronos documentation says:
–automipmap Causes the KTX file to be marked to request generation of a mipmap pyramid when the file is loaded.
Additionally: When dropping .jpg in the babylon sandbox mipmaps are created. When dropping .ktx2 files it does not happen.
So does anybody know what’s up with the --automipmap feature? We’d really like to try this option.
Best, Mamu