• 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.

Exporting animations

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,468
Country
netherlands
Hi,

I have made some changes today that allow me to export animations to the X file format (and thus to FSX MDL files). You will get the first implementation with tonight's build.

But I must warn you that it is not yet working correctly. The animated parts have some problems with being mirror around some axes. I have not yet been able to solve that.

So you can test it, but don't export objects with animations if you want to use them in your scenery project :).
 
I fixed the problem with flipped parts. The only part I still have to do is write the right animation type, now all animations in the export are Ambient (I need to read the modeldef.xml I guess). That I will continue on tomorrow.

So if you import a default object with animation now, it should export fine (and keep the animations), except that they all become of type ambient.
 
I see it more as a step on the way to support animations from API macros. Importing a FSX MDL with animations and then exporting it again without losing them is not really a step forward :). So once I figured out the last few issues, I will start working on support for SCASM animations.
 
You have many gifts, one of them, looks like, is also reading other's minds:) - SCASM animations being converted into FS X animations is what I'm waiting for - a a starved wolf and fox together:D:D
 
I have just committed some final changes to the exporting of the animations. These are related with the /XANIM attribute being set automatically for XtoMDL when needed and looking up animation names from ModelDef.xml when needed while creating the XANIM file.

I have tested that things work by importing a FSX MDL with a simple animation I made. I can export it again and the resulting MDL file still has the working animations :).

I also tried it with a default aircraft, but in that case the exported animations don't work anymore. I guess there are more aircraft specific things that I am missing some how. But for the moment I won't give that priority, scenery objects are the main goal still. If some aircraft designer can later explain me a bit more about the other aircraft related stuff in the MDL file I can try to improve it.

So now the next step is to modify the SCASM reader to understand animations in there and add them to the object model...
 
Back
Top