DragonBones / dragonbones.github.io

113 stars 48 forks source link

Not able to import Spine animation data? #9

Open aseem2625 opened 7 years ago

aseem2625 commented 7 years ago

Hi @superlancelot DragonBones 4.9.5 I am not able to import Spine animation data to DB. <Check the 2nd post. You may ignore this one.>

Resources have been taken from 👍 Resources Link I've converted texture data from .atlas format into .json as DragonBones doesn't support reading .atlas format.

My files are as follow:

Image file: spineboy

Texture Data file (Uploaded in .txt format. Plz remove ".txt" from file name before using) spineboy.json.txt

Animation Data(Uploaded in .txt format. Plz remove ".txt" from file name before using) spineboy.json.txt

Note: My animation data and texture data are both .json formats. And my texture data .json works correctly as I am able to import it individually as can be seen in below image. image

But when I created a new project and used this panel. It throws an error saying "Animation Data or Texture Data not supported. Try other plugin" image

image

PS: I even tried to save a new empty project and tried importing as "Existing Project" and then also no success.

aseem2625 commented 7 years ago

After lot of error and trials, found that there was slight issue in .json animation file. In above .json file, following was missing in the starting of the file:

"skeleton": {
    "hash": "NYDebVH+Ht9WSskWgX4h79z2c4w",
    "spine": "3.5.03-beta",
    "width": 1223.72,
    "height": 1055.62,
    "fps": 30,
    "images": "./images/"
},

Anyways, you may ignore the above post. Now, I am taking example from the below link Resources

And the import seems to work. But there is a huge issue in scaling of images. This is how it looks after import:

image

image

However, this one is correct. Probably, because not scaling was used for it in spine. image

superlancelot commented 7 years ago

New features such as "skew", "path constraint" in spine 3.5.x is not supported. Because DragonBones still have no these features :-(

sergiopoverony commented 7 years ago

More error from export - see here https://github.com/DragonBones/dragonbones.github.io/issues/10