1. Let's create an animation of a waving flag by adding motion to the pole of the flag.
You do not need to be concerned about the motion of the flag since it will be added with MD. We do not want the flag to wrap around the pole, so a slow circular motion is in order. See Mdc02mox.lws as an example.
2. Once the motion is completed, open LW_MotionDesigner from
the Generics menu inside the Plug-in Options button. Make sure that flag.lwo
is selected from the Object panel, and set it as the Target. This will import
the object and the motions with the keyframes into Layout.
After clicking the button once, you can
check the imported motion by moving the slider at the bottom of the display
from to .
3. Set the parameters required for each surface on Surface
panel. Set Fixed to ON so the pole section (pole) cannot be moved (although
it may be fixed, the pole will be forced to move along with the motion of the
object). Then, set Spring (coefficient) of the cloth section (flag0) to 1000
(difficult to stretch).
Although these two settings are adequate, specifying additional
parameters for the cloth section helps create a better approximation of a piece
of cloth in motion in the air. These parameters are a Resistance value of 5
and a sub-structure value of 1000 (creates substructures in addition to polygons
for a specified surface to make that surface resist bending).
4. Let's set the wind and the gravity on the Env panel. Specifying
gravity and no wind will articulate the motion. See mdc02.lws if you would like
these settings loaded automatically.
5. Let's begin the calculation. To start the calculation,
click thebutton at the bottom of the display.
If the object doesn't fit the screen, it can be centered using thebutton. Selecting theline display mode at the top of the display, rather
than thepolygon display mode allows you
to see the sub-structures.
6. If all the settings are appropriate, the flag should start waving gradually on the screen. The flag will stop waving as the specified calculation time expires. Play back the motion by manipulating the slider. If you are not satisfied with the result, modify the parameter and recalculate.
7. Save the calculated result in a file. Specify the filename by thebutton and save the data. See flag2.mdd.
8. Go back to Layout. Select MD_Plug under the Add Displacement pull-down menu inside the Object properties panel for the flag object. Make sure that the saved MDD file is loaded. The motion of the flag object is generated by MD and the motion itself is absorbed in the MDD file. Select Key-Move=OFF to stop the motion on the Layout side. Otherwise, the motion will be calculated twice. Mdc02.lws is the scene file for the sample.
9. Manipulating the time slider allows the flag to wave realistically. Now add extras as desired to complete the job.