July 7, 20178 yr 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: 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> (pressing CTRL + F3... canopy goes backward and, then, afterward, this can not happen according to my code) Could somebody please help me? Thanks, Matheus
July 11, 20178 yr Somebody with more knowledge may step in here, this is just an idea. Try re-animating with keyframe points at 0, 79, 80, 81, 99 & 100. FS RTWR SHRS F-111 JoinFS Little Navmap
July 11, 20178 yr 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
July 11, 20178 yr 32 minutes ago, n4gix said: From the same topic at FS Developer, adding more keys was the answer to the problem. Ahh I see, the hunch was somewhat correct. FS RTWR SHRS F-111 JoinFS Little Navmap
July 11, 20178 yr 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... 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.