DragonBones / Tools

DragonBones Tools
MIT License
141 stars 75 forks source link

Bug: TextureAtlas with rotated is rotated wrong direction #14

Open fastfading opened 5 years ago

fastfading commented 5 years ago

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 commented 5 years ago

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 (顺时针)