Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Getting Started

Animations and offset

You feel lost? You don't understand how to use ShiVa?

Animations and offset

Postby Markuzzzz » 05 May 2012, 11:25

Hi,

I am having a problem while animating, maybe someone already has a nice solution for it. I am animating a diving goalie. The diving movement is within the animation. Now when the animation stops i need to go to an idle animation. Now the diving movement created an offset the idle animation starts with an offset. Which result in a weird animation...

What is the best way to solve this?

Kind regards,

Markus
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: Animations and offset

Postby broozar » 05 May 2012, 20:08

to be clear, by offset you mean, the model moves away from 0,0,0? so the goalie lies on the ground, with e.g. 1.5 units away from 0,0,0 and you have trouble moving/interpolating him back to the origin?
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3514
Location: Berlin - Germany

Re: Animations and offset

Postby Markuzzzz » 06 May 2012, 05:39

Jep, the models is moved partly by animation and translation in script. When the animation is done, it goes to idle and 'jumps' back. In your example, if the animation starts at 0.0.0 and is done on 1.5 units further, idle again starts at 0.0.0

Markus
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands

Re: Animations and offset

Postby broozar » 06 May 2012, 07:54

for the transition, you will need a separate "getting up" animation, otherwise it will always look weird.

as for your origin problem, play your goalie dive animation, and when it's done, take the position of your root bone and setTranslation() your model there for the next animation (get up).you will probably have to add an offset +/- y but other than that, i would work with the root bone.
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3514
Location: Berlin - Germany

Re: Animations and offset

Postby Markuzzzz » 06 May 2012, 12:07

Thanks for the tip, going to try the root solution :)
http://www.nifty-inspirations.com, because simple things are hard to find!
Markuzzzz
Platinum Boarder
Platinum Boarder
 
Posts: 578
Location: Netherlands


Return to Getting Started