Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Animation keyframes issue - "door_0" or similar

Featured Replies

Hello,

I have been facing an unpleasant issue, which I cannot get rid of it for a long.

Usually, door animation starts at keyframe 0 and finish at 100. Ok, but in my model I need to have a keyframe at 80, because the end of animation is slower than the overall.

 

This is the code in *.xanim:

 

<?xml version="1.0" encoding="ISO-8859-1" ?>
<AnimLib version="9.1">
  <Anim name="door_0" guid="9B5ED86C-B114-4924-B5C9-163A99042F2F" length="100.000000"
        type="Sim" typeParam="AutoPlay" typeParam2="door_0">
    <AnimStream name="Position" id="2" partName="Door_passenger_1" length="100.000000">
      <Keyframe time="0.000000" type="Vector" data="0.000000;0.000000;-0.000000;0.0"/>
      <Keyframe time="80.000000" type="Vector" data="0.000000;-0.548503;-0.000000;0.0"/>
      <Keyframe time="100.000000" type="Vector" data="0.000000;-0.584065;0.000001;0.0"/>
    </AnimStream>
  </Anim>

 

Very easy to understand: when the animation starts, the position is at 0;0;0. At keyframe 80, Y position is -0.548503. For the last keyframe, poition is -0.584065. But this does not happen correctly in FS, as you can see below:

giphy.gif

Close to the end of animation, the canopy goes forward and return to the 100 keyframe position. This is an aircraft made for FS9. Even tested in FSX, this animation is OK. Now, I am recompiling it for FSX and facing this error.

Another test:

I changed door_0 by lever_prop_pitch, just to see what happens. The result was not good. Code:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<AnimLib version="9.1">
  <Anim name="lever_prop_pitch" guid="9B5ED86C-B114-4924-B5C9-163A99042F2F" length="100.000000"
        type="Sim" typeParam="AutoPlay" typeParam2="lever_prop_pitch">
    <AnimStream name="Position" id="2" partName="Door_passenger_1" length="100.000000">
      <Keyframe time="0.000000" type="Vector" data="0.000000;0.000000;-0.000000;0.0"/>
      <Keyframe time="80.000000" type="Vector" data="0.000000;-0.548503;-0.000000;0.0"/>
      <Keyframe time="100.000000" type="Vector" data="0.000000;-0.584065;0.000001;0.0"/>
    </AnimStream>
  </Anim>

giphy.gif

(pressing CTRL + F3... canopy goes backward and, then, afterward, this can not happen according to my code)

Could somebody please help me?

 

Thanks,

Matheus

  • Moderator

From the same topic at FS Developer, adding more keys was the answer to the problem.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Moderator

Yes Roman. In order for FSX/P3D to properly interpolate keyframed animations, it needs enough keys to be set, otherwise unpredictable behavior can and probably will occur... :blink:

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.