# Loading ktx etc1 compressed textures

**URL:** <https://discourse.libcinder.org/t/loading-ktx-etc1-compressed-textures/98>\
**Category:** Using Cinder\
**Created:** [June 19, 2016, 2:37pm UTC](https://discourse.libcinder.org/t/loading-ktx-etc1-compressed-textures/98 "2016-06-19T14:37:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [June 19, 2016, 2:37pm UTC](https://discourse.libcinder.org/t/loading-ktx-etc1-compressed-textures/98/1 "2016-06-19T14:37:39Z")

</div>

I have been trying to load compressed textures on OS X and in OpenGL ES 2 on RPi 3, with `Texture2d::createFromKtx`.

I compressed a png with [crunch-osx](https://github.com/BKcore/crunch-osx) like this:

`crunch -file 01.png -fileformat ktx -etc1`

The texture seems to be loaded, but nothing is shown, while uncompressed ktx, without the -etc1 option seems to be working, but since it is not compressed it has no use for me at the moment.

Could you suggest a way to load compressed textures in OpenGL ES 2?

-Gabor

---

<div class="post-metadata">

**Author:** ![gabor\_papp](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/gabor_papp/32/769_2.png) [@gabor\_papp](https://discourse.libcinder.org/u/gabor_papp)\
**Post date:** [June 20, 2016, 7:36am UTC](https://discourse.libcinder.org/t/loading-ktx-etc1-compressed-textures/98/2 "2016-06-20T07:36:06Z")

</div>

It turns out that the OS X driver does not include etc1 texture support, but it works on the RPi, although it displays a warning:

`|warning| static void cinder::gl::TextureBase::getInternalFormatInfo(GLint, GLenum *, GLenum *, bool *, bool *, bool *)[1b3] Unknown internalFormat:0x0`

The `gl::TextureData` returned from `parseKtx` contains the proper `0x8D64`, `GL_ETC1_RGB8_OES` internal format, so the warning might be harmless.

-Gabor
