• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX first time animating control surfaces

Messages
7
Country
canada
Hi ,
First time I am developing an aircraft for FSX (early stages with no materials and a lot of refining of the model to do). Its fascinating and challenging. I am hooked and loving it.
I have these FSX sp2
FSX SDK 3ds MAX9 GMAX XtoMDL
My model was exported from 3ds MAX9 using ACES TOOL. The model flew on my first try. Except the animations never worked.
I exported an XANIM file just to see what was inside. Here is it

<?xml version="1.0" encoding="ISO-8859-1" ?>
<AnimLib version="9.1">
</AnimLib>


I tried it also from GMAX to MDL and it flew but no animation.

I tried wing vortex and it worked so I do not think the installation of the SDK that has problems

C:\Users\Administrator\AppData\Roaming\Microsoft\FSX\dll.xml

<?xml version="1.0" encoding="WINDOWS-1252"?>
-<SimBase.Document version="1,0" Type="Launch"> <Descr>Launch</Descr> <Filename>dll.xml</Filename>
<Disabled>False</Disabled>
<Launch.ManualLoad>False</Launch.ManualLoad>
-<Launch.Addon>
<Name>Object Placement Tool</Name>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Path>C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Mission Creation Kit\object_placement.dll</Path>
</Launch.Addon>
-<Launch.Addon>
<Name>Traffic Toolbox</Name>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Path>C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Traffic Toolbox SDK\traffictoolbox.dll</Path>
</Launch.Addon>
-<Launch.Addon>
<Name>Visual Effects Tool</Name>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Path>C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Special Effects SDK\visualfxtool.dll</Path> </Launch.Addon>
</SimBase.Document>


I think I am doing something wrong with the animation in 3ds Max .
I am down to testing just the elevator with no success

I use bones and IK limb solvers. The images will give you more information.
I use metric units.

I need some guidance in this so I can perfect and refine the model, I prefer MAX9
This a wonderful forum. I learnt most of what I know from here.

Thanks timothy

Sorry for the image hosting i will get another one





















 
Last edited:
If you use bones and i-K Solvers, you must collapse the trajectories to keyframes before they will work in the sim.

Actually, there is a limit of 22 bones so using them when it's not strictly necessary probably isn't the best idea in the world... ;)
 
Last edited:
Thanks n4gix
I will change them.
I was following the SDK jetway video tutorial
I originally had the animations without the bones.
 
Hi I used the same type of key frame animations as used in the DC 3 aircraft sample model. Here is my XANIM file.


<?xml version="1.0" encoding="ISO-8859-1" ?>
<AnimLib version="9.1">
<Anim name="elevator_percent_key" guid="69fced03-9a10-49a7-aa82-2b79ab5b63e0" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="elevator_percent_key">
<AnimStream name="Rotation" id="0" partName="elevator_percent_key1" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;-0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="0.052336;0.000148;0.000015;0.998630"/>
<Keyframe time="100.000000" type="Quaternion" data="0.182236;0.000242;-0.000073;0.983255"/>
</AnimStream>
<AnimStream name="Rotation" id="0" partName="elevator_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="0.052336;-0.000000;-0.000000;0.998630"/>
<Keyframe time="100.000000" type="Quaternion" data="0.182236;-0.000000;0.000000;0.983255"/>
</AnimStream>
</Anim>
<Anim name="l_aileron_percent_key" guid="bad53e9a-1958-4b22-90fe-23513d121db3" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="l_aileron_percent_key">
<AnimStream name="Rotation" id="0" partName="l_aileron_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;-0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="0.382683;-0.000000;0.000000;0.923880"/>
<Keyframe time="100.000000" type="Quaternion" data="0.707107;-0.000000;0.000000;0.707107"/>
</AnimStream>
</Anim>
<Anim name="l_flap_percent_key" guid="DB029E5C-1A48-42d5-8290-EF098DFABB4F" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="l_flap_percent_key">
<AnimStream name="Rotation" id="0" partName="l_flap_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="-0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="100.000000" type="Quaternion" data="-0.382683;-0.000000;0.000000;0.923880"/>
</AnimStream>
</Anim>
<Anim name="l_lead_edge_flap_percent_key" guid="1B2C12B5-8539-439c-980C-A198647C9291" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="l_lead_edge_flap_percent_key">
<AnimStream name="Rotation" id="0" partName="L_frontflap" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="100.000000" type="Quaternion" data="0.382683;0.000000;-0.000000;0.923880"/>
</AnimStream>
<AnimStream name="Position" id="2" partName="L_frontflap" length="100.000000">
<Keyframe time="0.000000" type="Vector" data="0.000000;0.000000;-0.000000;0.0"/>
<Keyframe time="100.000000" type="Vector" data="0.000000;0.000000;-0.000000;0.0"/>
</AnimStream>
</Anim>
<Anim name="r_aileron_percent_key" guid="77db62be-36d4-4c03-bea7-c4cc2a224d9d" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="r_aileron_percent_key">
<AnimStream name="Rotation" id="0" partName="r_aileron_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;-0.000000;-0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="-0.382684;-0.000000;-0.000000;0.923880"/>
<Keyframe time="100.000000" type="Quaternion" data="-0.707107;-0.000000;-0.000000;0.707107"/>
</AnimStream>
</Anim>
<Anim name="r_flap_percent_key" guid="3849E47F-9088-4699-8959-EC0C54DF8015" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="r_flap_percent_key">
<AnimStream name="Rotation" id="0" partName="r_flap_neg_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="-0.000000;0.000000;-0.000000;1.000000"/>
<Keyframe time="100.000000" type="Quaternion" data="-0.382683;0.000000;-0.000000;0.923880"/>
</AnimStream>
</Anim>
<Anim name="r_lead_edge_flap_percent_key" guid="D27F63C4-2260-4dbe-8973-9C920A3C8898" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="r_lead_edge_flap_percent_key">
<AnimStream name="Rotation" id="0" partName="R_frontflap" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="100.000000" type="Quaternion" data="0.382683;0.000000;-0.000000;0.923880"/>
</AnimStream>
</Anim>
<Anim name="rudder_percent_key" guid="5433b2a0-0fd9-4192-8f7d-0ba36bf7191d" length="100.000000"
type="Sim" typeParam="AutoPlay" typeParam2="rudder_percent_key">
<AnimStream name="Rotation" id="0" partName="rudder_percent_key1" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;-0.000000;-0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="-0.104150;-0.037811;0.192007;0.975119"/>
<Keyframe time="100.000000" type="Quaternion" data="-0.215710;0.009594;0.365778;0.905309"/>
</AnimStream>
<AnimStream name="Rotation" id="0" partName="rudder_percent_key" length="100.000000">
<Keyframe time="0.000000" type="Quaternion" data="0.000000;0.000000;0.000000;1.000000"/>
<Keyframe time="50.000000" type="Quaternion" data="-0.091151;-0.037639;0.186083;0.977573"/>
<Keyframe time="100.000000" type="Quaternion" data="-0.192178;0.000210;0.356943;0.914144"/>
</AnimStream>
</Anim>
</AnimLib>


This is Bill Leaming’s target path for the shortcut

%windir%\system32\cmd.exe /K E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\xtomdl.exe" /XANIM /DICT:E:"\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML" > buildlog.txt

This is my target path

%windir%\system32\cmd.exe /K C:"\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\3DSM9\Plugins \xtomdl.exe" /XANIM /DICT:C:"\ Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin \modeldef.XML" > buildlog.txt


When I drag my X file onto the shortcut I get this command window with no mdl file.



image.jpg
[/url] [/IMG]

I placed my X and XANIM files into the plugins folder

When I drag the X file onto the xtomdl in the plugins folder I get a perfectly flying aircraft with lights, flames etc BUT WITH NO ANIMATIONS.

I think my problem is in the command prompt. I will keep looking for the fault. Some expert advice would be greatly appreciated.
 
Last edited:
Just a thought...
These are rotation animations. Did you add intermediate keyframes? If you just have keys at 0 and the endpoint (i.e. 100) the animation won;t work.
 
This is my target path

%windir%\system32\cmd.exe /K C:"\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\3DSM9\Plugins \xtomdl.exe" /XANIM /DICT:C:"\ Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\bin \modeldef.XML" > buildlog.txt

When I drag my X file onto the shortcut I get this command window with no mdl file.

Oh my! This is yet another reason why one should NOT use the default path for the FSX SDK!

A command line is limited to 128 characters. Since the path to the default folder structure is SO LONG, you've greatly exceeded the 128 character limit! The image of your COMMAND BOX display clearly shows where it stopped parsing the command line (highlighted in RED above), because it shows the "Output File" name as "Files.MDL"... :eek:

So, uninstall the FSX SDK, then reinstall it to a shorter path, such as "C:\FSX_SDK"...
 
I was wondering why your target path has less characters.
I saw there was a modification in the command window and did not know how to fix it .
i am happy now that you thought me about the limited to 128 characters in the command line. Going to reinstall the SDK very carefully.

The ACES toolbar only has the X files export selection so I use the 3ds max 9 export selection in the Files dropdown toolbar. There I can select also the XANIM file for export.

I want to change the level of detail LOD on some of the meshes.

There was a node named particle view at the top of the hierarchy I removed it. The root node is now named SamPakFa. It doesn’t seem to cause a problem.

That 128 characters limit got me stuck for many days.

Thank you very much.

Do I keep the modedef XML in the SDK max 9 Plugins folder or the bin folder?
I have them in both.
Should I put it in the actual(program) max 9 Plugins folder




Hi N2056
I set the rotation control to linear but not with intermediate key frames. Will change that.
Thank you for that advice.
 
Last edited:
Do I keep the modedef XML in the SDK max 9 Plugins folder or the bin folder?
I have them in both.
Should I put it in the actual(program) max 9 Plugins folder.
You should have only one copy of modeldef.xml and it should remain in the ../bin folder of the SDK. That is why my command line has that path included.

It's just too easy to get confused if you have more than one copy of modeldef.xml floating around. I also recommend making a copy of modeldef.xml and renaming that copy to ORG_modeldef.xml so that you will always have a master copy in case of disaster!

What I do now is whenever I start a project, I create a new and empty modeldef.xml file then add only the XML scripts I will be using for that specific project. That keeps the file shorter. Before changing to another project, I save the "current modeldef.xml file" as NameOfProject_modeldef.xml so that I can keep that file associated with my project!

BEWARE of using any of the ACES Export tools, as they are not guaranteed to work for anything other than scenery, and even then I don't trust 'em!

Use only the .x file export option in the regular File/Export or Export Selected dropdown menu.
 
Thanks Bill
I am storing the master copy of modeldef.xml on a second hard drive and also a CD.
I made many mistakes but am happy to have gotten this far. Going to design the cockpit and a better landing gear.
 
n4gix
I reinstalled the SDK ,followed your instructions on the target path



%windir%\system32\cmd.exe /K C:"\Program Files (x86)\FSX_SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\xtomdl.exe" /XANIM /DICT:C:" \Program Files (x86)\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML" > buildlog.txt



My "Start in:" path is -
"C:\Program Files (x86)\FSX_SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins"

And ALL Animations are working perfectly. Did not even put in intermediate key frame animations.

The text output;
Found dictionary file: C: \Program Files (x86)\FSX_SDK\SDK\Environment Kit\Modeling SDK\bin\modeldef.XML
OutputFile:
Output file after modification:
Usage: XToMDL.exe /KEEP /NOGUI /BATCH /NOCRASH /BMP2DDS /XMLSAMPLE /XANIM /DICT:dictFileName /OUT:OutfileName Filename.X

No errors

THANK YOU THANK YOU THANK YOU

I AM HUMBLED
 
Back
Top