# How to selectively apply the behavior from engine.setTextureFormatToUse

**URL:** <https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169>\
**Category:** Questions\
**Created:** [September 28, 2021, 8:07pm UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169 "2021-09-28T20:07:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [September 28, 2021, 8:07pm UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169/1 "2021-09-28T20:07:44Z")

</div>

Hey all, when using `engine.setTextureFormatToUse`, is there a way to be selective about what it tries to apply \<-format\>.ktx to ? Its trying to apply it to every texture no matter how its loaded(environment map and a bunch of accent/background models we don’t have ktx pipeline set up for etc… )

Edit: the ones that need the format behavior are being loaded as loose `Texture` if that helps

Thanks

---

<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:** [September 28, 2021, 8:15pm UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169/2 "2021-09-28T20:15:00Z")

</div>

I think all of this has been improved quite a bite by @Evgeni_Popov ???

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [September 29, 2021, 10:07am UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169/3 "2021-09-29T10:07:40Z")

</div>

No, I didn’t do anything related to `setTextureFormatToUse`.

Maybe you can use .ktx2 files instead for the assets that need texture compression?

Adding @bghgary as he will probably have more answers regarding `setTextureFormatToUse`.

---

<div class="post-metadata">

**Author:** ![br-matt](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/br-matt/32/22436_2.png) [@br-matt](https://forum.babylonjs.com/u/br-matt)\
**Post date:** [September 29, 2021, 2:57pm UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169/4 "2021-09-29T14:57:23Z")

</div>

@Evgeni_Popov I can give that a shot. I thought ktx2 did not support PVRTC but I am mistaken and it gets transcoded. This is the best writeup I ever seen explaining all that: [Basis Universal GPU Texture Codec](https://reposhub.com/cpp/miscellaneous/BinomialLLC-basis_universal.html)

---

<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:** [September 29, 2021, 5:31pm UTC](https://forum.babylonjs.com/t/how-to-selectively-apply-the-behavior-from-engine-settextureformattouse/24169/5 "2021-09-29T17:31:47Z")

</div>

> [@br-matt](#):
>
> is there a way to be selective about what it tries to apply \<-format\>.ktx to ?

It doesn’t look like it from the code. You can explicitly call this with an empty array to reset.
