Cannot found ETC1 Codec support for ES2

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
oiram
Halfling
Posts: 87
Joined: Sun Dec 13, 2009 5:06 am
x 6

Cannot found ETC1 Codec support for ES2

Post by oiram »

Hi guys,
Compress texture support In OGRE OpenGL ES2 render system only PVRTC / DXTC there. To my knowledge, PVRTC just for apple device, DXTC just for NV device, but ETC1 is a standard format for android and every ES2 devices.
We could use tools to compress texture to ETC1, and here are two format choice for ETC1: pkm and ktx.

From MALI document:
Output file format
The options are:
PKM is a simple file format for single compressed images. If you generate Mipmaps, multiple PKM files are created.
KTX is a Khronos Group standard compression format that provides a container for images. If you generate Mipmaps, a single KTX file is generated.
I think we just need add KTX file format codec for ETC1.
Any advice? :)
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Cannot found ETC1 Codec support for ES2

Post by masterfalcon »

Well pvrtc is really for any device with a PowerVR chip, not just apple devices.

The reason the ETC1 is not supported is because I don't have any android devices and no one else has implemented it yet.
oiram
Halfling
Posts: 87
Joined: Sun Dec 13, 2009 5:06 am
x 6

Re: Cannot found ETC1 Codec support for ES2

Post by oiram »

:cry: Oops...
Whatever, ETC1 can be used with PowerVR chip. So I think we just need add KTX codec and use GL_OES_compressed_ETC1_RGB8 to load texture.
Here is the KTX file format:
http://www.khronos.org/opengles/sdk/too ... rmat_spec/
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126

Re: Cannot found ETC1 Codec support for ES2

Post by masterfalcon »

Sounds like you have everything you need to get started ;)
oiram
Halfling
Posts: 87
Joined: Sun Dec 13, 2009 5:06 am
x 6

Re: Cannot found ETC1 Codec support for ES2

Post by oiram »

Wolfmanfx wrote the original codec for add ETC1 support:
http://www.ogre3d.org/forums/viewtopic. ... 45#p461088

I have added KTX support base on it, and it was tested that works fine.
https://sourceforge.net/tracker/?func=d ... tid=302997
:oops:
oiram
Halfling
Posts: 87
Joined: Sun Dec 13, 2009 5:06 am
x 6

Re: Cannot found ETC1 Codec support for ES2

Post by oiram »

I'm working on it.