• 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 Cable animation

Messages
235
Country
ca-ontario
I have a post from 2011 that deals with cable animation, but the pictures that would have been in the post are no monger there.
I am looking to animate a pulley and cable system that would control a boom to lower the small watercraft from the roof of the yacht.

Here is what it looks like:
rigging project.jpg


I know it has something to do with creating a skinned mesh for each section of wire with "bones" at each end, linked to the pulley.
The Gmax tutorials was not very helpful in explaining haw to create the "skin mesh"
I tried this morning to start with a "cylinder and tried applying the "skin" modifier, but it was giving me a registry error. Although it did show the skin modifier in the stack, at witch point I could add bones.

The questions I have are the following:
1) How do I create the skin mesh?
2) Is the mesh created first, then the bones added?
3) does the "bone" have to be centered on the wire or can it be offset, to be located on the center of the pulley, while the cable is on the edge of the pulley?

Michel E Paquette
 
Thru more trials and error, I have discovered how to get a cable out of the "line" . Then no problem into converting it into a mesh, which shows up in FSX.
But according to Gmax instruction, I can apply the "skin" modifier to a mesh.
But when I try to apply the skin modifier to my meshed line, I get this:
Skin_Error.jpg


Any idea as to what this means?

Michel
 
Bones tutorial for a wire::wizard:
1. Create a low poly tube with poly's at each end only. This tube must be water tight or closed at each end, so do not remove any faces.
2. Select the cable and go to modify then modifier list and attach skin.
3. Create a texture then apply to cable and in the material editor at the bottom you must select the "Skinned mesh" box.
4. Create 2 bones that will cover the poly's at the end of the tube (cable).
5. Select the cable and under modify/parameters using the tool window on the right side of Gmax click Add Bone and select the 2 bones you created.
6. You can click Edit Envelope in the same section as above and make sure the bone is covering all of the poly's. You might not need to adjust since the tube or cable is very small.
7. Now create animation for the 2 bones only not the cable. Now can make the cable shrink in length and grow in length. I would place the bones (cable) at the top of the pulley and create another cable that will start at the bottom of the pulley since you not going to wrap the cable around the pulley wheel. Just make fake cable for the actual pulley wheel.
8. When you export in gmax select the check box export skin.

There is no need for using mesh you can just use poly and i have no idea what your error is. Might be because your using a line part rather than a tube that is water tight!:idea:
 
Last edited:
I think problem is with g-max installation as the error also comes up when I open the tutorial drawing on skinning the carecter

Michel
 
Which shortcut are you using for gmax. The default shortcut on your desktop is no longer used once you install gamepacks. You need to make a new shortcut from the new one from the gamepacks directory.
 
I am using FSX game pack shortcut.
A while back I was having a problem with Gmax. It would not start up, giving me some kind of error, so I just re-installed and that seemed to fix the problem.
I am wandering if I should have uninstalled first, then re-installed from scratch. But If I do that, would I need to go back to Turboquid to re-register? And would that actually fix the problem?
A few days ago I did start a new scene, put 2 discs to represent the pulleys, and 2 lines with a thickness of 3/8 and 12 segment and 0 steps ( so one piece lengthwise). Then I tried many different ways, Leave as line, convert to edible spline, mesh or poly. And every time, as soon as I added the skin modifier, I would get the error. But I could still continue with adding the bones to the center of the pulley, add the bones to the skinned line, link the bones to the pulley and it would work fine as long as the envelope was large enough to cover the end of the line. The problem came when I rescaled from system units of inches to meters. The pulleys and line would rescale, but the bones would go really weird.
I know what your going to ask. Why do I rescale. Most of my boat is made up of imported DXF blocks from my other 3D modeling program. And in order to get imported and not have to rescale and relocate every piece, my system units need to be in inches. Then I need to rescale to meter system unit to export to FSX.
I believe I also tried to add a cables with bones after rescaling to meters, and I think that the error message also came on when exporting.
I will test again this morning to confirm this
The "rescaling" of the bones also came up if I opened the tutorial project at the different system units than it was drawn. So it's not just my boat.

Michel
 
Delivery guy
Did a lot of testing this morning, one stop at a time.
Line with a thickness for height and width have no problem to show up at all stages up to UVW and texture in FSX.
If I draw the bones and do my animation after its been rescale to"meters", no problem with things going out of whack scale wise, except for the "COM ERROR"
After skinning, every time I open the drawing ,I get 2 "COM ERROR".
If I rescale back to inches, wires are not in there right place, but bones are but much smaller.
But then I can rescale back up to meters and things are OK again.
I don't get the error message when I export like I thought I did. Just when I reopen the drawing
There is however something very wrong.
In Gmax, animation looks good, but in FSX, wires do not move.

Michel
 
Michel, I am very "disturbed" by your continued references to "rescale"... This is not something anyone should be doing at all.

Please understand that there are two places in Max/GMax where such may be set. One controls the "scale" at which all objects are exported. It is set one time and never touched again:
System Unit Setup
1 unit = 1 meter

The other place is
Display Unit Scale
This is the only place you should ever need to change. All it does is allow you to measure in different systems, such as meters, inches, feet and decimal inches, etc.
 
It all started when I first started my project. I prefer to work in inches , so I set the display unit setup to imperial. I do not know what the system units was set at, but I started importing my DXF blocks to start building my hull.
The first time I exported to FSX, my boat was "HUGE". Found out that system units needed to be set to metric and I guess they weren't. So proceeded to set system units to meters and exported. Everything was fine, until I stated importing more block. Now my imported blocks were "HUGE". Played around quite a while until I found out that to import my blocks, I needed to set system units to inches and then change to meters when exporting to MDL.
If it wasn't for importing the DFX blocks I relies that I would not need to go from one to the other.
I believe when I import a block, it reads 1 unit of measure in my block to equal I unit of "system" units and not "display" units.
If I don't do it this way, I would need to scale down all my imports and them bring them to the right location.
The way I am doing it now, I import and they fit right were they belong. Its a bit of a hassle, but well worth it, since most of my boat has been modeled in my other program.

Michel
 
Just as Bill posted you never need to change the main system units. The other scale i change when i need to measure in inches. But i mostly work in meters for quickly changing tool sizes.
What you need to do is build you project in 1 scene if you project is not that big until you work with larger projects and get some practice. You need to build the cables exactly where they will be located for animation key 0. Then you can create bones and attach them. After you attach them you can't move the cable at all. You can only move the bones for location adjusting or animation you desire.

When you export the project the display unit scale can be in any setting. Hope this help!:teacher:
 
You all seem to be missing the point.
Before I even realize that I could do this project, I did a 3D drawing in AutoCAD(unfortunately not in solids but just lines) and I also produced a 3D solid model in the program I use for my work (steel detailing). My 3D model was done in imperial, which means 1 unit is equal to 1". I have the option of exporting individual pieces from my modeling program in .dxf format. but I can't change the scaling, therefore 1 unit in my dxf file is equal to 1"
When I started looking at doing this project in Gmax, I soon found out that I could import the solid objects that I exported from my other program into Gmax. The problem is ,that when the system units is set in meters, the block that might be 3 units wide x 3 units height x10units long, that I exported from the other program, gets imported into Gmax as 3 meters x 3 meters x 10 meters, not 3"x3"x 10". At this point it was clear to me that to import dxf files from my other program into Gmax, the system units in Gmax had to be set to inches so that the 3"x3"x10" block would be imported as a 3"x3"x10"block. There might have actually been other avenues to avoid constantly changing the system unit to meters for exporting, but I was OK with doing it this way.

Would it be possible to get back to my post, my cable animation?
The "tutorial" that DG gave in reply #3, seems to be my solution except that I can get it to work in Gmax, but it does not work when I export to FSX. I suspect it has something to so with the error code I am getting when I try to apply the "skin modifier". So right now I need to find that answer, then maybe the rest of this will work like it's suppose to work.
I also believe that my scaling issue might be resolved once the error code is resoled. If not, I will deal with it then.

I have manage to attach 3 short video clip (in .mov format) in my other post "A few animation questions".

Michel
 
Normally when you import objects from other programs the scale should be the same size. If not, you need to use the scale tool to reduce it and use the measuring tape to get the scale you want. But do not change the units system. That will not work.

For your animation you can just use keys 0-25 to have the pole turn 90 degrees and use the same animation code for the cable using keys 25-50 to lower. Then use the flaps in the cfg to have 2 entries so that you can click once to rotate and another click to lower the cable!
 
Delivery Guy
I have done my whole boat up to now by working with the scaling to suit my needs and I don't have problem with that. It has not given me any problems up to now. But for the sake of argument, I have set my system units to meters and I will leave them there until this animation problem is solved.

If only it was as simple at swinging a boom and lowering the cable.
My problem is with the complexity of the animation for my life boat and the problem with getting the cables to shrink when I raise the boom,
Go look at the 3 short video clip I posted in reply 10 of my other post. I agree with what you said in that posting about LVars, but at the moment, this is completely out of my field of knowledge. I know nothing about coding.
In the next few days I will be testing out a theory of why I am having so much problem with my boom animation. If I am right, I will be posting the results of my testing in the other post. Also, I tested out using flaps for just a few steps of my animation yesterday, and on one trial, when I open up my flight, my boom was not in position 0. I thought it was because my flaps were not at 0 but that was not the problem, since raising the flaps did nothing. Even thou I have not given up completely on this option, I still prefer the "spoiler", as my engines don't have to be on to activate my dinghy deployment,
And regarding my cables, all testing that I have done up to now with cables and bones, it works fine in Gmax, but when I get to FSX, cables don't move. So I have yet to find a solution for this problem. But I still have a few more options to try. BTW, the tube option you suggested in the other posts, when I move the bones, only a few points ot the tupe moved with the bone, not the whole tube end, even thou the envelope was adjusted to cover the whole end of the tube.

Michel
 
Make sure you use L_flap_key since there are a few choices. If the animation goes the wrong way you can use L_flap_neg_key. I forget if you even have that code or its a custom one i added for reverse animation.

Yep do lots of quick tests before you spend the long hours setting up everything so you know everything will work.

If only a few poly's move and your bones is covering the end, you need to open the envelope option as i described in my tutorial and make the envelope larger. The envelope allows you see see the poly's turn red so you know they are surrounded.

If your animation is not working in FSX for the bones you most likely did not apply the animation manager to each bone. Try testing a bone and a box as a quick test on another scene.
 
I am getting frustrated with these cables. I have tried the tube, the cylinder and the line. animations for all of them works just fine in Gmax. But when I export to FSX, they don't move. I have verified that the bones envelope do cover the whole end and that the bones are part of the animation list in the animation manager. They just don't work. At one point I thought selecting the box "export skins" while exporting would make a difference, but it does not. Why does it work in Gmax and not FSX????
What could I be doing wrong?????

Michel
 
"Export Skins" is critical. It must be enabled.

The bone envelopes need to encompass more than just the ends, in fact the envelopes from each end should overlap somewhat. Every vertex in your skin receives a 'weight' that is scaled progressively lower the further from the bone it is.
 
Thank you for your input Bill
I sort of realized yesterday when I spotted the "export skins" that it was as important as "export animation". but even with that , still does not work in FSX,
About the bone envelopes, Is the length of the bones to insure wrapping up as many of the vertex as possible? In my case they don't need to be long as my vertex are only on the ends. My cable is been made up of one long section of "line", "tube" or "cylinder". And the fact that it is working fine in G-max, I believe is an indication that I am doing something right. It seems that something is not going right when I export to FSX. Yet the rest of the animation is fine. I wander if it could have something to do with the error I was getting earlier. Even thou that issue has been resolved, could there still be a residual problem the remains from that????
I have just tried overlapping the envelops and there is no change.

Michel
 
Bill
One more thing I just notice
I use the same shortcut every time to open my G-max, the one that was in the FSX game pack. Yet, sometime I will open G-max and the "FS tool" won't be there.
could this cause an issue?

Michel
 
Yes. If the FS Tools aren't showing, then it's doubtful you will even be able to export properly.
 
After you start Gmax open click MAXScript, then Run Script, then double click FSToolsmenu.ms and see if the FS Tools appears at the top. Then you know it's working. I have a very large model.def so i must do this each time i run FSX if i am adding animation.

Also in my tutorial make sure you have confirmed you have checked the box in your material editor for "Skinned Mesh" and it is applied to your cable. And Bones do not need material.
 
Last edited:
Back
Top