State of GLTF KTX-2 Support

YO @bghgary … Hay bro, i was wondering whats the state of KTX2 for GLTF.

I have the Babylon Toolkit generating KTX2 files during the export. But making the ktx was easy because there was C# bindings for the native tools to create the ktx2 files… But i still cant see how to use them in our gltf… Do we actually name all the textures .ktx or .ktx2 and thats the only texture image file (instead of a png)… Or do we make both the .png and .ktx version ???

Is there any example of using ktx2 in gltf yet ???

I made the KTX2 images a few months ago… Has the ktx2 spec changes (so my libs for generating the ktx files are still good… i hope)

Note: I am using the Khronos Texture Tools: toktx
to generate the ktx2 files from png files

Any in fo would be awesome … thanks man :slight_smile:

1 Like

But i still cant see how to use them in our gltf

The latest spec for glTF is here: https://github.com/KhronosGroup/glTF/pull/1751

Is there any example of using ktx2 in gltf yet ???

This is the only one I know of: KHR_texture_basisu samples · Issue #1750 · KhronosGroup/glTF · GitHub. This one works in Babylon.js sandbox using experimental support.

Has the ktx2 spec changes

There has been some changes, but I don’t know exactly when it happened. You should update to the latest version of toktx to be sure.