Hello to all š
I want to use the ETC1 compression format for spine animations and improve performance on Android platform, but I canāt add an alpha channel to the texture.
A little search by code revealed the ability to attach a file with an alpha channel using the suffix ā@alphaā.
I compress āsleleton.pngā animations texture file using TexturePacker in 2 files - āskeleton.pkmā for RGB and āskeleton.pkm@alphaā.
Suffix great works with objects of the Sprite class(i use create() method), but does not work for āspine::SkeletonAnimationā. What can I do about it?
Code:
auto tmpSprite = Sprite::create(animDir + āskeleton.pkmā);
bg->addChild(tmpSprite);
tmpSprite->setPosition(center);
auto tmpSk = spine::SkeletonAnimation::createWithJsonFile(animDir + āskeleton.jsonā, animDir + āskeleton.atlasā);
tmpSk->setAnimation(0, āstaticā, true);
bg->addChild(tmpSk);
tmpSk->setPosition(center + Vec2(500, 0));
result:

Left is the Sprite (from the animation atlas)
Right is the spine::SkeletonAnimation, there is no alpha channel