Help regarding XML animation and keyframe speed

Discussion, tutorials,hints and tips relating to designing military ai aircraft.
Post Reply
User avatar
Hawk120
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 13 Jul 2009, 21:50
Version: FS9
Location: South-Africa, Pretoria

Help regarding XML animation and keyframe speed

Post by Hawk120 »

Hello there guys

Thanx for an awesome site, service the worx, it really is service help etc. with a smile :D

Anyhow with my first release of my Casa C212-200, I had some animations issues that I fixed sort of myself but now for the Casa C212-300 with the winglets, I have a new animation problem....

Let me state what I did. With the 300 model you have landing lights that retract when the plane shuts down and retracts and stay like that all the way till the plane shuts down.

So I have made made some key frame animations from frame 0 to 90, each time moving the lamps 10 degrees. So in 90 frames it moves from horizontal inside the body to vertical outside the body.

Ok to XML program them I have tied them to the Beacon lights so when the beacon lights come on and stay on, the animation should play. but here comes the snag......

The animation workx but the lights appear almost instantly, they do not lower or show the sequence of frames at all, maybe i did something wrong with the lag parameter or something in the xml process. :shock:

Any help would be appreciated here since i want to finish this bird as quickly as i can, still in the week to come!

Thanx in advance.

Regards
Morné :)

[P.S. I use Gmax for modelling]
Image
Per Aspera Ad Astra
"Through Adversity to the Stars"
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2787
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Post by Weescotty »

Unless there is real need to (intermediate keyframe) there is no need to animate in 10 degree steps.

So remove all key frames and only animate the start and finish positions.
0 = inside
90 = outside

The lag parameter sets how long the anim takes. If I remember the lower the lag, the longer it takes. I know its back to front!

<part>
<name> your part name </name>
<animation>
<parameter>
<code> your part code </code>
<lag>50</lag> <--------HERE
</parameter>
</animation>
</part>

<Code> should be something along the lines of -
<code> (A:LIGHT BEACON, bool) 90 * </code>
User avatar
Hawk120
Second Lieutenant
Second Lieutenant
Posts: 23
Joined: 13 Jul 2009, 21:50
Version: FS9
Location: South-Africa, Pretoria

Post by Hawk120 »

Hello there Weescotty

Thanx so much for your response, I really appreciate it. I did not know that the Lag was back to front, go figure why it appeared instantly lol I am learning all the way since this was my first modeling project but the next will go much smoother and with you guys here at the forum, who could ask for any better help :wink:

Regards
Morné
Image
Per Aspera Ad Astra
"Through Adversity to the Stars"
User avatar
Weescotty
MAIW Developer
MAIW Developer
Posts: 2787
Joined: 11 Aug 2006, 22:15
Version: P3D
Location: Sydney

Post by Weescotty »

Hawk120 wrote:Hello there Weescotty

Thanx so much for your response, I really appreciate it. I did not know that the Lag was back to front, go figure why it appeared instantly lol I am learning all the way since this was my first modeling project but the next will go much smoother and with you guys here at the forum, who could ask for any better help :wink:

Regards
Morné
I was surprised by the way lag works (probably most others also lol).
First one is always the hardest.
What normally happens though is as you progress you add more and more stuff.
Result - still hard :-) .
Post Reply