Does cocos2d-x support loading .pkm(etc1) texture directly?

I try to use CCTextureCache to add a .pkm texture which is generated by etc1tool(including in android sdk), but failed. I only get a white image on my HTC G7 device.

Since ETC1 is the only format that all android devices support, I want to make it work under cocos2d-x framework. What should I do? Do I have to write some code in Java in org.cocos2dx.lib package?

Please help me.

up once~

>> Since ETC1 is the only format that all android devices support

Can not use png?

Sorry to open such an old post, but i really would like to know if there ara any plans to make Cocos2d-x support this format.

The fact is that the ETC1 is the only texture compression supported by all Android devices.

Thx for all the hard work

I’d like to bump this as well. I have a lot of background images which ETC1 would be ideal for. On iOs we used PVR, so it would be good to have something for Android as well.

Le Bump
One of the reasons to use Cocos2d-x is because of it’s platform-agnosticity. Unsupported ETC1 kills all the beauty of it.

Peter Prokop wrote:

Le Bump
One of the reasons to use Cocos2d-x is because of it’s platform-agnosticity. Unsupported ETC1 kills all the beauty of it.

Well, you bump up a very very old thread. Take a look at #2161, #2328, ETC1 is already supported.

How to use ETC1 with alpha channel?

Check this manual: http://malideveloper.arm.com/develop-for-mali/sample-code/etcv1-texture-compression-and-alpha-channels/

Please see: https://github.com/halx99/decoda/blob/master/libs/cocos2d-x-3.10/cocos/renderer, It’s try to implement builtin support etc1 texture directly with alpha channel.
Let’s dicuss with it.