Additive Cycle for steps/stairs

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
JoelMayer
Posts: 394
Joined: Sun Apr 05, 2009 8:29 pm

Additive Cycle for steps/stairs

Post by JoelMayer »

Okay another problem, i'm trying to have this guy walk down the stairs with an additive cycle... i added the additive only to the main bone that moves the whole thing back and forth as well as the target bones of the feet. for some reason, when cycling, the main bone moves too far down the steps as you can see. if i could somehow get it to work so it would really just take the last frame of the cycle as an end frame it would all be solved...

Image
Daxel
Posts: 1088
Joined: Wed Mar 27, 2019 8:34 pm

Re: Additive Cycle for steps/stairs

Post by Daxel »

It's been a while since I used additive cycles so take this with a grain of salt, but maybe the problem is that the target bones for the legs have a global position so the cycle doesn't work well. This script by sam could help you if that's the problem. It can turn the animation of your target bones from global to local (relative to the character), so you can cicle the guy changing its posture normally and only make the translation of the character an additive cycle.

https://www.lostmarble.com/forum/viewtopic.php?t=34513

Cool animation by the way.
User avatar
JoelMayer
Posts: 394
Joined: Sun Apr 05, 2009 8:29 pm

Re: Additive Cycle for steps/stairs

Post by JoelMayer »

Daxel wrote: Thu Dec 08, 2022 2:40 pm It's been a while since I used additive cycles so take this with a grain of salt, but maybe the problem is that the target bones for the legs have a global position so the cycle doesn't work well. This script by sam could help you if that's the problem. It can turn the animation of your target bones from global to local (relative to the character), so you can cicle the guy changing its posture normally and only make the translation of the character an additive cycle.

https://www.lostmarble.com/forum/viewtopic.php?t=34513

Cool animation by the way.
Thanks!

I tried the script but can't for the life of me get it to work. It does SOMETHING and i follow the instructions but yea...

I uploaded the file here in case anyone wants to take a look: https://drive.google.com/file/d/1g_YRI3 ... share_link
User avatar
JoelMayer
Posts: 394
Joined: Sun Apr 05, 2009 8:29 pm

Re: Additive Cycle for steps/stairs

Post by JoelMayer »

Got it to work with the help of a member of a Discord channel.

Memo to self: in the future for steps use layer transform instead of moving the root bone, it'll make it much easier :roll:
User avatar
SimplSam
Posts: 1218
Joined: Thu Mar 13, 2014 5:09 pm
Location: London, UK
Contact:

Re: Additive Cycle for steps/stairs

Post by SimplSam »

I have a modified version below. The things changed were:

#1 - Use totally linear steps - otherwise errors when trying to align just get exacerbated with additive cycles. (original Steps in Red)
#2 - Set Markers on extreme steps for timing refs
#3 - Align target bones on steps during first Cycle (markers yellow <-> yellow). Add additive cycle
#4 - Break children (manual) and Align root bone on first Cycle frame #3. Then add back children. Add additive cycle
#5 - Tweak and review alignment (first Cycle) to correct the Target and Root bones drift in later cycles
#6 - Add additive cycle for remaining bones

note: The new steps were created with a straight line and the Curve Profile tool, which has odd kinks. But you can update the Red steps to be closer to it - then hide/del it.

Image

https://drive.google.com/file/d/1qZ495G ... sp=sharing
Moho 14.3 » Win 11 Pro 64GB » NVIDIA GTX 1080ti 11GB
Moho 14.3 » Mac mini 2012 8GB » macOS 10.15 Catalina
Tube: SimplSam


Sam
Post Reply