Nexus Modding > Game Assets

Object animations in Layout

(1/3) > >>

jstubbles:
Hey guys, had a quick question about animations in Layout. I got everything animated and it compiles and plays in the game. The problem I'm having though is that the animation looks like it's on a spline ramp instead of being linear. So when it starts, it starts slow then winds up faster and faster. This is not the behavior I want. It should have a constant speed.

I've gone into Layout's graph editor and set the animation keys to repeat in the pre/post behavior and also set the keys from TCBSpline to Linear. But this doesn't seem to help it at all in game.

Any ideas?

Arparso:
Well, the only animation I've worked on was a rotating radar dish (on the GTC Fenris and Leviathan models for the Freespace mod), so I'm not exactly an expert. :P

The way it worked for me was by using two keys for rotation: one had a value of 0°, the other one had 360° with both of them being 300 frames apart. Pre and post behaviour have been set to constant and both keys have their incoming curve set to TCB Spline (with tension, continuity and bias set to 0). This gives me a constant rotation, similar to the Stiletto's rotating mid-section.

DreamorCZ:
Animation starts always slow and stops accelerating when it reaches specifications in Layout from what I know. If I'm right, you need this for Ragnar station, so I would recommend 1000 frames for one 360° rotation.

jstubbles:
Nah, the animation plays fine in Lightwave. There's no slow down or speeding up. It's one constant smooth motion. But when I load the model in the game, it automatically starts the animation and when it does, it starts slow then ramps up to full speed and then plays forever. I do not want that ramp-up. It doesn't exist in the animation and it shouldn't be there in the game.

If I load the model in the model viewer there's no animation. If I press "1" to enable the first animation, it starts at fullspeed like I want - no ramp up time.

I don't know why it's giving the animation that ramp-up when loading it in the game or editor.

Arparso:
If it's a default animation (#anim def#), then I suppose this is "normal". Looking at the AnimateShip() command, which starts or stops the default animation, it explicitly mentions a gradual animation startup over the course of 10 seconds.

I don't know a way to avoid that. You might have to work around it, like making a short "intro" to your mission(s), carefully hiding the animation startup from the camera.

Navigation

[0] Message Index

[#] Next page

Go to full version