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

FSXA Skinned Mesh Material Problem

Paul Domingue

Resource contributor
Messages
1,532
Country
us-california
I have run into a problem with my skinned animation that I have not been able to figure out nor can I find an answer through my searches.


The animation works correctly in Max using bones and a skin modifier applied to the objects. I have a lot of bone animation but I'm not anywhere near the limit of 128 bones and I do not have more then two bones affecting any single vertex and very little of those.


Without the skinned mesh material applied to the objects they are in the proper location but of course do not animate but as soon as I apply the skinned mesh material the objects change location and orientation. (see image) They now animate in their odd position and there is unusual distortion of the object during the animation sequence. I have tried two different textures to see if it might be something wrong with the texture itself but it did not matter, the problem was the same with both.

Skinned_Mesh_Problem.jpg


It seems like a scaling problem with the bones but I'm not sure how to go about correcting it. Any attempt to reset pivots or scaling on the bone objects end up in disaster.


While bone animation is relatively new to me, I have successfully made skinned animations in another model though not quite as complicated.


Any ideas on what could be the problem would be greatly appreciated and I can then be done with this landing gear.


Thanks in advance


Paul
 
Have you tried resetting the scale on the cable parts themselves? (You might want to remove the "Skin" modifier from the stack before that lest it messes things up even more.)
Is each and every bone keyframed?
Is the animation controller for each bone set to "linear"?
 
I have run into a problem with my skinned animation that I have not been able to figure out nor can I find an answer through my searches.


The animation works correctly in Max using bones and a skin modifier applied to the objects. I have a lot of bone animation but I'm not anywhere near the limit of 128 bones and I do not have more then two bones affecting any single vertex and very little of those.


Without the skinned mesh material applied to the objects they are in the proper location but of course do not animate but as soon as I apply the skinned mesh material the objects change location and orientation. (see image) They now animate in their odd position and there is unusual distortion of the object during the animation sequence. I have tried two different textures to see if it might be something wrong with the texture itself but it did not matter, the problem was the same with both.

It seems like a scaling problem with the bones but I'm not sure how to go about correcting it. Any attempt to reset pivots or scaling on the bone objects end up in disaster.


While bone animation is relatively new to me, I have successfully made skinned animations in another model though not quite as complicated.


Any ideas on what could be the problem would be greatly appreciated and I can then be done with this landing gear.


Thanks in advance


Paul


Hi Paul!

Have you made sure that your rest position is the same as your beginning pose position? If not that could be a possible cause for your problem.

Thanks, Kris :-)
 
Have you tried resetting the scale on the cable parts themselves? (You might want to remove the "Skin" modifier from the stack before that lest it messes things up even more.)
Is each and every bone keyframed?
Is the animation controller for each bone set to "linear"?

Yes, I made sure the skinned object had its pivot oriented to the world coordinates and was correctly scaled. I selected all the bones and collapsed the animation to frames, (used the IK HI solver for the initial animation then deleted it after collapse) and the controller is set to linear by default.

Hi Paul!

Have you made sure that your rest position is the same as your beginning pose position? If not that could be a possible cause for your problem.

Thanks, Kris :)

I'm not quite sure of what you mean but the initial pose is at frame 0 when the gear is fully retracted.

I have gone through everything I know to check but I'm guessing it's something really stupid I have overlooked.

BTW, one object was animated with a solver and the other by hand manipulating the bones.
 
I'm not quite sure of what you mean but the initial pose is at frame 0 when the gear is fully retracted.

I have gone through everything I know to check but I'm guessing it's something really stupid I have overlooked.

BTW, one object was animated with a solver and the other by hand manipulating the bones.

Hi Paul!

What I mean by rest position and pose position. The meshes that are not staying in their correct location; where they modeled with the landing gear up or down. If they where modeled in the down position and your first pose position is with the landing gear in the up position, then your rest position is not the same as your pose position.

I hope that makes more sense!

Here is another thing to check:
Did you make sure to set a key frame for each bone that you manipulated with out using the IK solver? If you missed setting a key frame for one of the bones it would mess up your animation.

Thanks, Kris :-)
 
Hi Paul!

What I mean by rest position and pose position. The meshes that are not staying in their correct location; where they modeled with the landing gear up or down. If they where modeled in the down position and your first pose position is with the landing gear in the up position, then your rest position is not the same as your pose position.

I hope that makes more sense!

Here is another thing to check:
Did you make sure to set a key frame for each bone that you manipulated with out using the IK solver? If you missed setting a key frame for one of the bones it would mess up your animation.

Thanks, Kris :)

Thanks for the reply Kris. I will double check to make sure I didn't miss a bone and let you know what I find.
 
I went through the entire process again checking the objects axis alignment and scale, created a new bone chain, skinned the object and anchored the start bone and object. I created the animation making sure all bones were key framed and added the animation tags to all the key framed parts. The animation controller is set to linear and all works fine in Max. I made a preliminary export of the model without textures applied to make sure the parts were in their proper position. As expected the parts were in place but did not animate. I then applied the texture with the skinned animation checked in the material editor. I then exported it again with the appropriate animation checks in the exporter dialog. The part was now hanging off in space a couple of meters away flipped 180 degrees on the Y axis and rotated 90 degrees on the X axis. The animation does work but the skinned mesh begins to deform as it moves to higher frame numbers. Now these skinned parts are themselves attached to animated parts but so are several other parts. When I exported another skinned mesh it to jumped off and joined its counterpart perfectly in place in relation to each other.

I'm running out of ideas on what to do. I think I'm going to try using a dummy intermediary to attach the parts and see what happens.
 
I was not able to find the problem with the skinned animation and I was under some pressure to finish the work so rather than spend more hours trying to resolve the problem I animated all the hoses the hard way by cutting them up into little pieces and animating each one, what a chore.
I have handed over the gear to the rest of the team and since they were waiting on me I expect to see the model released very soon.
For those interested in the FSX version of Milton Shupe's Grumman Mallard look for its eventual release on SOH.
 
Sorry, I did not read your post sooner Paul.

If you still need some help let me know.

Kris :-)
 
Sorry, I did not read your post sooner Paul.

If you still need some help let me know.

Kris :)
Thanks Kris.

I suspect the problem may be a setting in Max 2015. My prior bone/skinned animations were done in Max 9 without a problem.

The odd thing about it is I had a section of hose that I divided into three parts. The first section was stationary terminating in clamps. Continuing from the clamps the second section needed to flex in a certain way then entered another set of clamps the last section from the clamps need another animation. So even though it represented a single hose it was actually three separate objects that met end to end. I had it all animated with bones and without a texture applied I checked it in the sim. The hose was in place but did not animate which I new would happen since I didn't apply the skinned mesh texture. I just wanted to see that it was properly located on the model.

I next applied the texture to the first animated section of hose but not the second section. When I tested it in the sim the section of hose with the texture applied had relocated itself a little ways off from its original position in relation to the model and it was in a different orientation. The other two sections were still in their proper place.

I then applied the skinned mesh texture to the second animated part and when I checked it in the sim it had also relocated itself but had properly attached its self to the first animated piece of hose.

It seems as if the application of the skinned mesh material changed the world coordinates and axis rotation of the animated parts. I played with it for quite a while but had to give up and leave it for another time since people were waiting on me to get done.
 
Hi Paul!

That sounds like what will happen in Blender with an animated mesh using bones if the starting pose position is not the same as the rest position.

It has been a couple of years since I have used 3DMax for modeling. So I can not remember exactly if the animation of bones is the same as Blender.

Kris :-)
 
Oh! I think I understand what you mean. This has to do with the actual creation of the bones and I think you have found my problem. The bones must be created and placed into position at frame zero before any mesh is applied. I think I was positioning the bones at frame 100. I will have to check this out this morning and post my results.
 
No, that wasn't the problem. I did create my animation from its rest position if I understand you correctly about rest and pose. Could you explain what the difference is between these two? Here is a picture in max showing what I have done.
 
Back
Top