DragonBones / DragonBonesUnity

75 stars 33 forks source link

Some elements display in the wrong position (skew related?) #6

Closed piacentini closed 10 years ago

piacentini commented 10 years ago

Hi, I am trying to play some 2.3 files. They are parsed correctly and the animation sequences are recognized. However, some bones do not display at the correct position: they look twisted and smaller. It appears that this happens in bones where the skX and skY parameters were animated, though I am not 100% sure. Are these supposed to work ok with the Unity implementation?

maxin0628 commented 10 years ago

I believe the Unity implementation support skX and skY, please check the demo project, note the bird character, its wings are animated via skX, skY transformation . About the twisted and smaller issue you mentioned, could you send me your character source file(FLA), then I can locate the cause of that? My mailbox: maxin0628@gmail.com.

piacentini commented 10 years ago

Hi, Maxin. Thanks for the reply. I sent you a couple of files via email, hope it helps. I am still trying to understand why these do not import cleanly. It might be pilot error, of course. But they might also touch on some edge cases that need to be covered to make the player more robust.

maxin0628 commented 10 years ago

I've just noticed that, you mentioned you used 2.3 files, Have you tried to export the json/png with the 2.4 DB flash panel and then test the exported files in Unity3d? Because the whole implementation is totally based on the 2.4. I don't say it's the final solution, but you could have a try, because as I know, in the previous edition of DB, there is a compatibility issue between 2.x editions' panels and runtimes.

If that does not work, please send me a fla file, just the one which can reproduce the issue is ok. if I'm sure there is a bug, I will work on it ASAP. DB is an open source project, we don't take any payment on that.

On Tue, May 27, 2014 at 12:50 AM, Mauricio Piacentini < notifications@github.com> wrote:

Hi, Maxin. Thanks for the reply. I sent you a couple of files via email, hope it helps. I am still trying to understand why these do not import cleanly. It might be pilot error, of course. But they might also touch on some edge cases that need to be covered to make the player more robust.

— Reply to this email directly or view it on GitHubhttps://github.com/DragonBones/DragonBonesUnity/issues/6#issuecomment-44204015 .

piacentini commented 10 years ago

maxin0628, you are correct! Re-exporting the animations with the latest DB flash panel fixed the issue, and they now play correctly using the unity library. I was probably running into the compatibility issue you mentioned. So I can continue my tests, thank you.

A small notice, not sure if you are aware of it: even when you export with the 2.4 panel, the skeleton files themselves still have the "version" field set as 2.3. I have observed this in your sample files as well (see line 1 of skeleton.json.txt in the demo project), so I thought that your files were also produced with an older version.

I just submitted a donation to the DB project, thanks for your kind attention and I hope the project continues to be a success.