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

Bug: TextureAtlas with rotated is rotated wrong direction #14

Open
fastfading opened this issue Jul 1, 2019 · 1 comment
Open

Bug: TextureAtlas with rotated is rotated wrong direction #14

fastfading opened this issue Jul 1, 2019 · 1 comment

Comments

@fastfading
Copy link

according to this doc
https://doc.starling-framework.org/v2.1/starling/textures/TextureAtlas.html
TextureAtlas with rotated is not supported.
however when I try it import a skeleton.xml texture.xml texture.png in to Dragonbone Pro with official importer. It display mismatch images. Looks like the rotated option , did not work.
image
this tool seems not provide a xml convert function

@fastfading fastfading changed the title TextureAtlas with rotated is not supported Bug: TextureAtlas with rotated is rotated wrong direction Jul 2, 2019
@fastfading
Copy link
Author

https://doc.starling-framework.org/v2.1/starling/textures/TextureAtlas.html
Texture Rotation
Some atlas generators can optionally rotate individual textures to optimize the texture distribution. This is supported via the boolean attribute "rotated". If it is set to true for a certain subtexture, this means that the texture on the atlas has been rotated by 90 degrees, clockwise. Starling will undo that rotation by rotating it counter-clockwise. (逆时针)
but dragonbone did clockwise (顺时针)

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

1 participant