# \#ktx2

**URL:** https://forum.babylonjs.com/tag/ktx2/183.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Failed to load KTX2 texture data used Zstandard (zstd) Compression](https://forum.babylonjs.com/t/failed-to-load-ktx2-texture-data-used-zstandard-zstd-compression/63871)

<div class="topic-metadata">

**Author:** [@keisukemikuriya](https://forum.babylonjs.com/u/keisukemikuriya)\
**Replies:** 6\
**Last updated:** [August 10, 2026, 11:31pm UTC](https://forum.babylonjs.com/t/failed-to-load-ktx2-texture-data-used-zstandard-zstd-compression/63871 "2026-08-10T23:31:39Z")

</div>

Failed to load KTX2 texture data used Zstandard (zstd) Compression. I’ve confirmed that I can no longer load KTX2 images using Zstandard (zstd) Compression. I recall it displaying correctly a month ago. Loading KTX2 i…

---

## [USDZ exporter bug if using .ktx2 compressed textures](https://forum.babylonjs.com/t/usdz-exporter-bug-if-using-ktx2-compressed-textures/63588)

<div class="topic-metadata">

**Author:** [@Florin\_Dumitru](https://forum.babylonjs.com/u/Florin_Dumitru)\
**Replies:** 3\
**Last updated:** [June 12, 2026, 10:18pm UTC](https://forum.babylonjs.com/t/usdz-exporter-bug-if-using-ktx2-compressed-textures/63588 "2026-06-12T22:18:06Z")

</div>

Hi! I think a bug has been introduced starting with 9.3.3 and this update to the usdz exporter. USDZ: allow texture export under NullEngine by arek-3d · Pull Request #18296 · BabylonJS/Babylon.js · GitHub When exporting…

---

## [Extracting KTX2 texture pixel information](https://forum.babylonjs.com/t/extracting-ktx2-texture-pixel-information/63153)

<div class="topic-metadata">

**Author:** [@SondreElgBB](https://forum.babylonjs.com/u/SondreElgBB)\
**Replies:** 4\
**Last updated:** [April 16, 2026, 7:12am UTC](https://forum.babylonjs.com/t/extracting-ktx2-texture-pixel-information/63153 "2026-04-16T07:12:47Z")

</div>

I’ve spent the day attempting to get the average color of a texture, but the buffers were always filled with nothing but 0 values. Some more testing revealed that this didn’t happen for jpg or png textures, but did for k…

---

## [How to inject \`@babylonjs/ktx2decoder\` into Babylon?](https://forum.babylonjs.com/t/how-to-inject-babylonjs-ktx2decoder-into-babylon/62160)

<div class="topic-metadata">

**Author:** [@regna](https://forum.babylonjs.com/u/regna)\
**Replies:** 41\
**Last updated:** [March 6, 2026, 7:33pm UTC](https://forum.babylonjs.com/t/how-to-inject-babylonjs-ktx2decoder-into-babylon/62160 "2026-03-06T19:33:32Z")

</div>

According to the source code, Babylon’s KhronosTextureContainer2 automatically fetches ktx2decoderfrom the CDN (https://cdn.babylonjs.com/babylon.ktx2Decoder.js). However, I’d like to locally host all files and avoid any…

---

## [Request to expose 2 Babylon KTX functions](https://forum.babylonjs.com/t/request-to-expose-2-babylon-ktx-functions/62353)

<div class="topic-metadata">

**Author:** [@regna](https://forum.babylonjs.com/u/regna)\
**Replies:** 4\
**Last updated:** [February 5, 2026, 10:11pm UTC](https://forum.babylonjs.com/t/request-to-expose-2-babylon-ktx-functions/62353 "2026-02-05T22:11:20Z")

</div>

Hi all! Related to the earlier post, could the Babylon functions initializeWebWorker()and workerFunction()be exposed on the global BABYLONobject? I use the CDN babylon.js file instead of importing the npm package. Howe…

---

## [KTX2 iOS Mipmap Issue](https://forum.babylonjs.com/t/ktx2-ios-mipmap-issue/59136)

<div class="topic-metadata">

**Author:** [@Urpgor](https://forum.babylonjs.com/u/Urpgor)\
**Replies:** 5\
**Last updated:** [July 11, 2025, 5:49am UTC](https://forum.babylonjs.com/t/ktx2-ios-mipmap-issue/59136 "2025-07-11T05:49:23Z")

</div>

Hi, we encountered the following issue when using KTX2 textures on iOS. If the texture has certain dimensions and mipmaps are used, it seems that some mip levels are not transcoded properly as they contain artifacts. W…

---

## [Does blender support ktx2 texture file in glb](https://forum.babylonjs.com/t/does-blender-support-ktx2-texture-file-in-glb/52642)

<div class="topic-metadata">

**Author:** [@ansh21222](https://forum.babylonjs.com/u/ansh21222)\
**Replies:** 5\
**Last updated:** [August 8, 2024, 1:20pm UTC](https://forum.babylonjs.com/t/does-blender-support-ktx2-texture-file-in-glb/52642 "2024-08-08T13:20:21Z")

</div>

I have two files one is before the ktx2 compression and second one is with the compression the file with ktx2 compression does not show the textures in blender and the file without the ktx2 compression shows the textures…

---

## [Inspecting GLB files to understand contribution of textures, vertex data to size](https://forum.babylonjs.com/t/inspecting-glb-files-to-understand-contribution-of-textures-vertex-data-to-size/36639)

<div class="topic-metadata">

**Author:** [@evidanary](https://forum.babylonjs.com/u/evidanary)\
**Replies:** 3\
**Last updated:** [May 29, 2024, 4:36pm UTC](https://forum.babylonjs.com/t/inspecting-glb-files-to-understand-contribution-of-textures-vertex-data-to-size/36639 "2024-05-29T16:36:12Z")

</div>

I converted my 40MB glb file to a KTX2 GLB file using \[gltfpack\](https://github.com/zeux/meshoptimizer/tree/master/gltf). New size is 5 MB! yeay! I’d like to decrease it further. Now I have 2 options: Reduce the resol…

---

## [Tools.LoadImage() can't load KTX2 file](https://forum.babylonjs.com/t/tools-loadimage-cant-load-ktx2-file/47130)

<div class="topic-metadata">

**Author:** [@gavinadler](https://forum.babylonjs.com/u/gavinadler)\
**Replies:** 2\
**Last updated:** [January 11, 2024, 11:13am UTC](https://forum.babylonjs.com/t/tools-loadimage-cant-load-ktx2-file/47130 "2024-01-11T11:13:13Z")

</div>

Hello! I want to load KTX2 texture file using Tools.LoadImage() but it keeps returning Error while trying to load image: error. I’ve made sure to include ‘image/ktx2’ for mimeType and I’ve tried loading from URL and arra…

---

## [Re export resources including ktx format texture](https://forum.babylonjs.com/t/re-export-resources-including-ktx-format-texture/46684)

<div class="topic-metadata">

**Author:** [@ye\_zhang](https://forum.babylonjs.com/u/ye_zhang)\
**Replies:** 2\
**Last updated:** [December 25, 2023, 1:47am UTC](https://forum.babylonjs.com/t/re-export-resources-including-ktx-format-texture/46684 "2023-12-25T01:47:47Z")

</div>

I compressed some textures in GLB using KTX and then opened them in Babylon Playground, which works very well; But when I export it as a .babylon file (or glb) in babylon playground, the obtained resources cannot be dis…

---

## [Issue with compressed textures of model on reloading saved serialized scene JSON](https://forum.babylonjs.com/t/issue-with-compressed-textures-of-model-on-reloading-saved-serialized-scene-json/43824)

<div class="topic-metadata">

**Author:** [@Bhushan\_Wagh](https://forum.babylonjs.com/u/Bhushan_Wagh)\
**Replies:** 3\
**Last updated:** [September 5, 2023, 8:51am UTC](https://forum.babylonjs.com/t/issue-with-compressed-textures-of-model-on-reloading-saved-serialized-scene-json/43824 "2023-09-05T08:51:48Z")

</div>

We have a glb model with compressed textures, when we drag and drop the model into scene it loads perfectly fine but after dropping it first time we are serializing scene and saving it in storage and when we reload and s…

---

## [TypeError: KTX2DECODER.LiteTranscoder\_UASTC\_R8\_UNORM is undefined](https://forum.babylonjs.com/t/typeerror-ktx2decoder-litetranscoder-uastc-r8-unorm-is-undefined/43759)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 1\
**Last updated:** [September 1, 2023, 11:32am UTC](https://forum.babylonjs.com/t/typeerror-ktx2decoder-litetranscoder-uastc-r8-unorm-is-undefined/43759 "2023-09-01T11:32:15Z")

</div>

Trying to use ktx decoders from another location but get this. Remove this code and it works as normal. const cfg = BABYLON.KhronosTextureContainer2.URLConfig; cfg.wasmUASTCToR8\_UNORM = "https://preview.babylonjs.…

---

## [Ktx2 image support within Babylon.JS GUI](https://forum.babylonjs.com/t/ktx2-image-support-within-babylon-js-gui/40402)

<div class="topic-metadata">

**Author:** [@Charge](https://forum.babylonjs.com/u/Charge)\
**Replies:** 4\
**Last updated:** [May 2, 2023, 9:57pm UTC](https://forum.babylonjs.com/t/ktx2-image-support-within-babylon-js-gui/40402 "2023-05-02T21:57:00Z")

</div>

Hi, recently I tried to use a .ktx2 image within the Babylon.JS Gui, but I couldn’t get it to work. There were no errors reported in the console and no exceptions thrown from Babylon. I ended up recreating the issue in…

---

## [Failed to load KTX2 texture data: Error: KTX2 container - could not transcode the data. TypeError: Cannot convert "undefined" to unsigned int](https://forum.babylonjs.com/t/failed-to-load-ktx2-texture-data-error-ktx2-container-could-not-transcode-the-data-typeerror-cannot-convert-undefined-to-unsigned-int/38726)

<div class="topic-metadata">

**Author:** [@Jon\_Jekeli](https://forum.babylonjs.com/u/Jon_Jekeli)\
**Replies:** 14\
**Last updated:** [March 6, 2023, 5:51pm UTC](https://forum.babylonjs.com/t/failed-to-load-ktx2-texture-data-error-ktx2-container-could-not-transcode-the-data-typeerror-cannot-convert-undefined-to-unsigned-int/38726 "2023-03-06T17:51:21Z")

</div>

Hi, we are getting an error with our textures that we converted to KTX2. See warnings in playground here: https://playground.babylonjs.com/#20OAV9#10002. We are converting the KTX2 files using the khronos provided conv…

---

## [Banding when viewing UASTC KTX2 in Babylon.js' sandbox](https://forum.babylonjs.com/t/banding-when-viewing-uastc-ktx2-in-babylon-js-sandbox/38540)

<div class="topic-metadata">

**Author:** [@jure](https://forum.babylonjs.com/u/jure)\
**Replies:** 14\
**Last updated:** [February 28, 2023, 10:19am UTC](https://forum.babylonjs.com/t/banding-when-viewing-uastc-ktx2-in-babylon-js-sandbox/38540 "2023-02-28T10:19:44Z")

</div>

I have a test texture (zipped and attached), produced using the toktx utility. When I drag and drop it into sandbox.bablyonjs.com, I get a lovely smooth multi-channel texture which is what I want (screenshot of a single …

---

## [KTX Test & Research](https://forum.babylonjs.com/t/ktx-test-research/35909)

<div class="topic-metadata">

**Author:** [@PichouPichou](https://forum.babylonjs.com/u/PichouPichou)\
**Replies:** 7\
**Last updated:** [November 23, 2022, 7:30pm UTC](https://forum.babylonjs.com/t/ktx-test-research/35909 "2022-11-23T19:30:06Z")

</div>

Hello BabylonJS fellows! I wish you all the best of health. I come here to expose you the result of our test with KTX textures. We made indeed several tests with several models. First, we thought that KTX will allow us…

---

## [Blender 3.3 LTS changes have begun, KTX2 incorporation?](https://forum.babylonjs.com/t/blender-3-3-lts-changes-have-begun-ktx2-incorporation/32572)

<div class="topic-metadata">

**Author:** [@JCPalmer](https://forum.babylonjs.com/u/JCPalmer)\
**Replies:** 3\
**Last updated:** [August 2, 2022, 4:43pm UTC](https://forum.babylonjs.com/t/blender-3-3-lts-changes-have-begun-ktx2-incorporation/32572 "2022-08-02T16:43:48Z")

</div>

Saw Blender 3.3 LTS entered beta yesterday. I do have a fix for the one exception that the 2.94 exporter has had with running in Blender 3.0+. I wanted to get out a beta version of the exporter in the next few days, wi…
