# How to use KTX2 / BASIS compressed normals

**URL:** <https://forum.babylonjs.com/t/how-to-use-ktx2-basis-compressed-normals/16021>\
**Category:** Questions\
**Created:** [November 25, 2020, 4:37pm UTC](https://forum.babylonjs.com/t/how-to-use-ktx2-basis-compressed-normals/16021 "2020-11-25T16:37:49Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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 17, 2021, 1:49am UTC](https://forum.babylonjs.com/t/how-to-use-ktx2-basis-compressed-normals/16021/14 "2021-02-17T01:49:06Z")

</div>

> [@Dshah\_H](#):
>
> I encountered few warnings for POT like: “warn: Texture dimensions 512x367 are NPOT, and may fail in older APIs (including WebGL 1.0) on certain devices.” , I presume it is necessary to correct those for better performance , right?

Yes.

> [@Dshah\_H](#):
>
> I have created some standard /custom material texture in babylonjs, which are not embedded in GLB model , how would I go about to compress them? (I couldn’t find a command for this on glTF-Trsnform)

I’m not sure. Maybe ask on the GitHub? [Issues · donmccurdy/glTF-Transform (github.com)](https://github.com/donmccurdy/glTF-Transform/issues)

> [@Dshah\_H](#):
>
> in above commands you are only using `baseColorTexture` , should I also process on other texture types?

The commands I sent will compress all the textures. Only the color texture uses ETC1S where as everything else uses UASTC.

> [@Dshah\_H](#):
>
> what are these parameters for? `--zstd 22 --slots` and which other parameters are available? couldn’t find in docs.

`--zstd` specifies the zstd compression level. `--slots` indicate which texture slots to apply the command to. I’m not sure. I got this information from Don 🙂

> [@Dshah\_H](#):
>
> are there some other helpful commands to process my model from glTF-Transform?

Seems like you got all of them.

---

_[View the full topic](https://forum.babylonjs.com/t/how-to-use-ktx2-basis-compressed-normals/16021)._
