Looping gamebryo animation with lead-in; possible?

Post » Mon Nov 19, 2012 4:00 am

I've created a legacy style animation in Blender (on an activator) which I can play using the PlayGamebryoAnimation script command.

The animation is a part of a machine spinning; I've got it looping ok, but what I'd really like is to get it starting off slowly, speeding up and then continuing to run full-speed. I've tried using afEaseInTime, no joy. I've tried setting the NiTextKeyExtraData in the ControllerSequence to have the keys

Time 0.000Value "Idle: Start"Time 5.9Value "Idle: Loop Start"Time 8.9Value "Idle: Loop Stop Idle: Stop"

In the hope it would play from 0.0 to 5.9 and the loop between 5.9 and 8.9 - but that doesn't work. Should I just stop flogging this poor dead horse, or is there some way of getting what I want?

In a perfact world I'd have it slow to a halt when I want as well. Can I achieve all this with three animations? And if so, how would I make sure the looping animation only starts playing once the lead-in animation has finished, and make sure the lead-out animation interrupts the looping animation only at a seamless switchover point?

If anyone knows, many thanks in advance :smile:.

Oh, by the way, SaidenStorm? If you're reading this, you solved my collision woes :goodjob:.
User avatar
Lawrence Armijo
 
Posts: 3446
Joined: Thu Sep 27, 2007 7:12 pm

Post » Mon Nov 19, 2012 7:58 am

The easiest option going with gamebryo is using 3 animation sequences.

From there your real question is weather you want to go with a looping middle anim or with a clamp anim that you have to trigger continously to make if seem like its looping this way has the benefit of having a clear transition to trigger the 3rd anim seamless.
User avatar
Racheal Robertson
 
Posts: 3370
Joined: Thu Aug 16, 2007 6:03 pm

Post » Mon Nov 19, 2012 12:40 pm

The easiest option going with gamebryo is using 3 animation sequences.

From there your real question is weather you want to go with a looping middle anim or with a clamp anim that you have to trigger continously to make if seem like its looping this way has the benefit of having a clear transition to trigger the 3rd anim seamless.
Ah, as I feared :shrug:. I'll fiddle around with it a bit, but it's probably not worth putting too much time into. Thanks for the suggestion :).
User avatar
Nick Swan
 
Posts: 3511
Joined: Sat Dec 01, 2007 1:34 pm


Return to V - Skyrim