Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of TextureAtlas frames for trimmed textures #94

Open
Adolio opened this issue Aug 16, 2017 · 2 comments
Open

Add support of TextureAtlas frames for trimmed textures #94

Adolio opened this issue Aug 16, 2017 · 2 comments

Comments

@Adolio
Copy link

Adolio commented Aug 16, 2017

In order to fully support the "Trim mode" of TexturePacker, the code will require some further implementation in the Slot logic.

The "Trim" option helps to win precious surface on the texture atlases by removing transparent pixels. It would be a real plus to finish its support in DragonBonesAS.

Thanks in advance!


TODO references in the code:

//textureData.frame = textureAtlas.getFrame(textureName);

//textureData.frame = textureAtlas.getFrame(textureName); // TODO

@Adolio Adolio changed the title Add support of TextureAtlas.getFrame() for trimmed atlases Add support of TextureAtlas frames for trimmed atlases Aug 16, 2017
@Adolio Adolio changed the title Add support of TextureAtlas frames for trimmed atlases Add support of TextureAtlas frames for trimmed textures Aug 16, 2017
@akdcl
Copy link
Member

akdcl commented Aug 17, 2017

Hi,
There is no solution to fully support the starling texture atlas yet, subtexture will be dislocated regardless of whether the code is open or not, the best solution is to tirm images before the package in texturepacker, or use DragonBones Pro to manager texture atlases.

@Adolio
Copy link
Author

Adolio commented Oct 11, 2021

I finally found the time give a try to implement this feature... and here it is: Adolio@aa8c357

It seems to work pretty well for me (for both standard textures & meshes) 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants