DragonBones / dragonbones.github.io

113 stars 48 forks source link

SPINE animation Export and Import to Construct2 #10

Open sergiopoverony opened 7 years ago

sergiopoverony commented 7 years ago

1. Export to spine animation and select version 3.0 or 2.1 - after complete header only for version 3. Any timу header writed as 3.3.07 version image

2. Deferent headers in JSON files original Spine export: {"skeleton": { "hash": "0zd+6ZsiWjtfX5qEXztRGdU37Vs", "spine": "2.1.27", "width": 1223.7, "height": 1052.38, "images": "./images/" } DragonBone exported: {"skeleton":{"images":"./image/","spine":"3.3.07"} In example Spine file i'm see other data as hash, version width and height

After edit exported file and write my width and height include (128,256), i see it image

3. Deferen header in atlas files without width and height original Spine export: raptor.png size: 2048,1024 **<< HERE CORRECT ATLAS SIZE** format: RGBA8888 filter: Linear,Linear repeat: none DragonBone exported: Hero_tex.png size: 0,0 **<< HERE ZERO ATLAS SIZE** format: RGBA8888 filter: Linear,Linear repeat: none

After import in my project - not work Atlas.

RESULT - WRONG MORE EXP. WRONG GENERATE ATLAS

Official Spine example https://yadi.sk/d/HLzybNmP3En2Vg

sergiopoverony commented 7 years ago

@superlancelot @liaocheng @tallshort @fans8 @mr-kelly Please Check it