Malhavok / Spriter2Unity

Tool for converting SCML files into Unity prefab and anim
12 stars 27 forks source link

In Spriter B6, getting scaling of wrong bone and missing rotations #5

Open DavidGeg opened 10 years ago

DavidGeg commented 10 years ago

Hey there, first thing, big thanks to you, without your contributions Spriter and Unity would not be possible. Fantastic job!

Essentially my problem is that I am scaling a chest bone to simulate breathing, when imported into unity, the head actually scales and seems to lift up off the body. Also, I am not seeing the chest rotate properly. In spriter, this all looks fine.

I put a note in the assets folder further describing the problem.

Full Unity Project & Spriter files in Assets\Textures\Villain_1 to demonstrate the issue on my public box.com account: https://app.box.com/s/2qca6nwvtxxm3u93j0nx

I am using Unity 4.3 and Spriter B6.

Thanks much!

Malhavok commented 10 years ago

Thanks for reporting a problem! I'll look into it ASAP (i have to finish some major refactor of the code, but i shouldn't be much of a problem)

Malhavok commented 10 years ago

got a second to look at the problem, i should be able to fix it tomorrow. It's the first time i see an animation this broken! i should've prepare myself some "test case" with all scales, rotations and positions and alphas applied at once.

DavidGeg commented 10 years ago

Thanks for taking the time to look at it. The test case I sent you should have some decent test cases in it. I wasn't going out of my way to break the system. I had just thought scaling the chest would be an excellent way to simulate breathing.

Thanks again!

On Sun, Jan 5, 2014 at 1:07 PM, Malhavok notifications@github.com wrote:

got a second to look at the problem, i should be able to fix it tomorrow. It's the first time i see an animation this broken! i should've prepare myself some "test case" with all scales, rotations and positions and alphas applied at once.

— Reply to this email directly or view it on GitHubhttps://github.com/Malhavok/Spriter2Unity/issues/5#issuecomment-31610729 .

Malhavok commented 10 years ago

sorry it's taking so long, i'm trying to figure out what the hell is happening there... everything seems fine, but in the end animation isn't right. this may take a few more days to fix :/

Malhavok commented 10 years ago

it's taking so long so it deserves an explanation:

hopefully, in the end, the tool will be much better. sadly - it'll take some more time v.v sorry!

DavidGeg commented 10 years ago

Actually, its fine. Take whatever time you need, because this is volunteer work! You are writing code against a moving target as Spriter is still in beta. Do what you can at a pace you feel comfortable with. I'll check in now and then on github and see how its going. Thanks! :-)

On Tue, Jan 7, 2014 at 4:12 PM, Malhavok notifications@github.com wrote:

it's taking so long so it deserves an explanation:

  • i've checked the entire processing system like 5 times already
  • i contacted Edgar and talked with him about transformations in spriter and how (and why) are these handled
  • i'm trying to rewrite and fix one of the bottom-most part of the code, that i relied on so far and took me a while to figure out, and any changes to that can break every other project

hopefully, in the end, the tool will be much better. sadly - it'll take some more time v.v sorry!

— Reply to this email directly or view it on GitHubhttps://github.com/Malhavok/Spriter2Unity/issues/5#issuecomment-31779755 .

Malhavok commented 10 years ago

do you mind if i pass this project to Mythgarr? he did great job developing an Unity plugin for Spriter and we'll be moving to it now and i've also noticed a similar problem with his implementation

DavidGeg commented 10 years ago

No I don't mind. To be completely honest, I think that it should be Brash Monkey's job to support at least the major engines out there. Spine does. Before you go, I do wish to thank you for looking into this issue. I think its fantastic that the community has the get up and go to make things like this happen. I wouldn't feel bad about passing the torch on this. With Spriter's long development cycle, you were coding to a moving target and would be no doubt for some time to come.

Good luck Malhavok!

On Sat, Jan 25, 2014 at 4:38 AM, Malhavok notifications@github.com wrote:

do you mind if i pass this project to Mythgarr? he did great job developing an Unity plugin for Spriter and we'll be moving to it now and i've also noticed a similar problem with his implementation

— Reply to this email directly or view it on GitHubhttps://github.com/Malhavok/Spriter2Unity/issues/5#issuecomment-33285109 .