# IBL from KTX file?

**URL:** <https://forum.babylonjs.com/t/ibl-from-ktx-file/8361>\
**Category:** Questions\
**Created:** [February 1, 2020, 7:40pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361 "2020-02-01T19:40:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_B](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@Alex\_B](https://forum.babylonjs.com/u/Alex_B)\
**Post date:** [February 1, 2020, 7:40pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/1 "2020-02-01T19:40:10Z")

</div>

I’m just digging around into various texture compression threads and I noticed that it’s possible to create a `KTX` version of an `HDR` file and use it in Filament.

[https://google.github.io/filament/webgl/tutorial\_suzanne.html](https://google.github.io/filament/webgl/tutorial_suzanne.html)

Is it possible to do this in Babylon? If not, is there a similar way to set up IBL using something other than a `DDS`?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [February 3, 2020, 5:21pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/2 "2020-02-03T17:21:58Z")

</div>

Pinging @bghgary and @drigax, the glTF A-Team

---

<div class="post-metadata">

**Author:** ![bghgary](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bghgary/32/48532_2.png) [@bghgary](https://forum.babylonjs.com/u/bghgary)\
**Post date:** [February 3, 2020, 5:41pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/3 "2020-02-03T17:41:11Z")

</div>

We don’t currently support KTX for IBL. @sebavan Please correct me if I’m wrong here.

We have our own custom format with the .env extension. See [here](https://doc.babylonjs.com/how_to/use_hdr_environment#what-is-a-env-tech-deep-dive).

Eventually, we will probably support whatever the glTF working group ends up with, likely using KTX2.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 3, 2020, 5:56pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/4 "2020-02-03T17:56:43Z")

</div>

Yup currently only supporting our own packed format based on RGBD and png.

---

<div class="post-metadata">

**Author:** ![Pryme8](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/pryme8/32/7212_2.png) [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Post date:** [February 3, 2020, 8:26pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/5 "2020-02-03T20:26:20Z")

</div>

Would he be able to utilize the compressed environment textures that can be generated in the sandbox?

Which would have a better compression factor?

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [February 3, 2020, 8:28pm UTC](https://forum.babylonjs.com/t/ibl-from-ktx-file/8361/6 "2020-02-03T20:28:30Z")

</div>

Oh yes, @Alex_B, you should have a look at [Use a HDR environment (for PBR) - Babylon.js Documentation](https://doc.babylonjs.com/how_to/use_hdr_environment)

and more specifically: [Use a HDR environment (for PBR) - Babylon.js Documentation](https://doc.babylonjs.com/how_to/use_hdr_environment#creating-a-compressed-environment-texture)

This would provide you with a nice fully featured ready to go env for babylon.
