ExcaliburGames

Hi

First thanks for Spine - it's great tool !
All works very good but we have strange problem.

I imported spine json file, bake animations and instantiate enemy with mecanim and all works !
But we are using blending for animations and when transition from one animation to another ended in this frame shows "default look" of enemy. And it's looks very bad =(

Default look - i mean what we see when we just instantiate enemy to scene and didn't started it.

Can anyone help us with this problem ?

Thanks,
Serhiy.

---

Hi

I made video with bug.
In zip file you will find avi file because i can't attach avi file =(

Thanks,
Serhiy

---

Hi
So I fixed this by myself

File SkeletonAnimator.cs line 118
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
replace with
// ExcaliburGames BEGIN
//animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
if(Mathf.Max(0, time - deltaTime) > 0f && time > 0f){
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
}
else{
time = stateInfo.normalizedTime * info.clip.length;
animationTable[info.clip.name].Mix(skeleton, Mathf.Max(0, time - deltaTime), time, nextStateInfo.loop, null, weight);
}
// ExcaliburGames END
Now blending works great without any bugs.

Thanks,
Serhiy
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
ExcaliburGames
  • Messaggi: 2

decoamorim

Just saw your video, and i am having the exact same issue.
The animation blink an idle state between animations.

How exactly did you implemented this code for blending?
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
Avatar utente
decoamorim
  • Messaggi: 131

ExcaliburGames

Hi decoamorim
I just updated SkeletonAnimator.cs file - and bug fixed =)
ExcaliburGames
  • Messaggi: 2

decoamorim

Ohhhh now i see what you did! I missed that it was a fix in the SkeletonAnimator.cs :rofl:

I ll try this tomorrow, not in the studio anymore. And post it here the results!

Thanks for the reply

-- 13 Aug 2015, 18:54 --

Ok I just fixed too...

Thanks for sharing!
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
Avatar utente
decoamorim
  • Messaggi: 131


Torna a Unity