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

Skin and bone animation example

arno

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

I've got a favour to ask ;). I want to look more into the skin and bone animations of FSX, with the aim of adding support for them to ModelConverterX. But to make that easier I could use some sample files (X file and MDL file) of simple objects with such animations.

I'm not looking for fancy objects, just a cube with a simple skin and bone animation would be fine already to study how things works.

I could make such an example with GMax, but then I don't get a X file and I'm too lazy to learn Blender just for this. So hopefully somebody with 3DS Max or Blender can make a simple example file?

Thanks!
 
Hi all,

I've got a favour to ask ;). I want to look more into the skin and bone animations of FSX, with the aim of adding support for them to ModelConverterX. But to make that easier I could use some sample files (X file and MDL file) of simple objects with such animations.

I'm not looking for fancy objects, just a cube with a simple skin and bone animation would be fine already to study how things works.

I could make such an example with GMax, but then I don't get a X file and I'm too lazy to learn Blender just for this. So hopefully somebody with 3DS Max or Blender can make a simple example file?

Thanks!

Hi Mr. Arno!

The resource that Mr. Daan and I released has the items that you are asking for. The resource is "
Fully rigged Blender pilot, including FSX ready .MDL file" in the aircraft design resources.

The resource is a pilot rigged with bones controlled by IK's.

If you need any other examples let me know and I will set them up for you.

Thanks, Kris:)
 
Here it is, Arno. A simple box with two bones. It sways left and right in 100 frames.
If you want a bone animation that travel along the distance to test with earth curvature correction, please tell me. I got a long travel train with bone and skin animation. It is really difficult to make it match the world in FSX.
 

Attachments

Thank you both. The pilot sounds like a good resource to test with, but I'll start with the simple box that Tic made.

When implementing animations I did most work with a simple scene with just three boxes, one rotates, one translates and the third is linked to the translating one and translates vertically. That simple scene was enough to get the basics working and it's much easier to understand the hex code for such a simple scene.
 
Hi Tic,

Your sample is working great to understand the mdl format. But could you maybe extend it a little bit by adding a second box that also has some bones and a similar movement? Then I can also see how multiple skinned animations are stored in the mdl.

Thanks!
 
Hi,

I mean another box with some additional bones. So then it's another skin I think technically.
 
Hi Arno,
I have made a new one. It is simple box with 3 segments and 3 bones. The top bone rotates around its z axis. Hope it is right to your wish.
 

Attachments

Sounds fine, but is the old one still in the same file as well. I wanted the complexity of multiple sets in one file.
 
Hi Kris,
Hi Mr. Arno!

The resource that Mr. Daan and I released has the items that you are asking for. The resource is "
Fully rigged Blender pilot, including FSX ready .MDL file" in the aircraft design resources.

The resource is a pilot rigged with bones controlled by IK's.

If you need any other examples let me know and I will set them up for you.

Thanks, Kris:)
Is seems this model has no IK constraints, is that right? I'm trying to read that information as well now.
 
Hi Kris,

Is seems this model has no IK constraints, is that right? I'm trying to read that information as well now.
Hi Arno!

Yes, you are correct. I did not setup any IK constraints for the animation. I do not know if it makes a difference with what you are looking at. But there are differences in how the bone animation had to be setup compared to how it would be setup in Gmax or 3DMax. Using Gmax or 3DMax setting up the animation for the aileron and elevator movements, you would setup in the bone tree structure for that animation, bones tagged with the aileron, and elevator. In Blender this method does not work. At least that I have been able to duplicate. What had to be done is that a separate bone tree structure had to be made for both aileron, and elevator movements. So what this means is that the part of the pilot mesh for the left arm has two sets of bone trees controlling the mesh movement.

I hope this better describes how the pilot mesh is controlled by the bones.

If you have any other questions please let me know. I will also have the new pilot that I have modeled and animated for my AltraMax aircraft uploaded for everyone to use. It may be a better model to study. Because I knew more about what I was doing.

Thanks, Kris
 
Thanks for the details. Since I'm reading the mdl files I think differences between modelling tools don't matter for me, it should end up in the mdl the same in the end.

I'm using a default jetway now to read the IK constraints and the handles.
 
Arno, animations with IK solvers have to be collapsed to keyframes anyways once collapsed the solvers are deleted so there is no need to be concerned about them.
 
I think at least for the jetways the IK solving is done in the sim. But maybe that's the only type and for others they are indeed collapsed to keyframes. In that case the IK sections of the mdl are probably not there or not relevant.
 
FSX won't accept anything but linear keyframes, IK solvers are ignored when exporting to X so they do not exist in the MDL file.
 
Oh, I might point out that IK solvers are only a tool for animations simular to using the look at constraints. At least for our SIM. Other game SIMs may use them differently.
 
That's not true, the SDK mentions X file command for IK constraints. So they can end up in the MDL file.

And for sure in the jetways I can find those sections back. How else would the jetway be able to animate to a door of an aircraft based on the door position from the CFG file? That can't be pre-cooked animations.

But I'm getting more and more convinced that it's only for the jetways and not for other animations in e.g. aircraft.
 
I could be wrong in this circumstance, it wouldn't be the first time. I will have to check the SDK but from my own experience and everything I have learned from the masters of modelling here says to the contrary.
 
I did some more checking as well and the default jetway object seems to be the only object with those sections in the mdl.

So I guess you are right that it's hardly used. Probably only by scenery designers that make a custom jetway.
 
Back
Top