1. Let's create another flag. A substantial number of polygons are required to make a realistic-looking flag. See Rflag.lwo.

2. Load rflag.lwo into Layout,
and open LW_MotionDesigner. Select rflag.lwo from Object panel,
and switch the Target ON.
3. Set the parameters for each surface
on the Surface panel.
Set the cloth section (default) to Weight=0.5 (light), Resistance=2, Spring (coefficient) and Sub-Structure to 1000 (difficult to stretch).
Unfortunately, this setting results in an overly stiff cloth because it is difficult for the cloth to expand and contract.
We must change Compress Stress from 100 (default) to 10.
This setting allows the cloth to shrink.
Set Fixed to ON for the fixed surfaces (fix).


Nevertheless, this setting only results in monotonous movement. Let's generate some turbulence. The turbulence is defined by 2 vectors: The wavelength which designates spatial size and the basis vector Turbulence which designates the power of the turbulence.
The basis vector should be defined at aright angle to the wind vector in almost all cases. The strength of the turbulence is decided by the size of the vector defined here and the strength of the wind.
In this case, the basis vector of the turbulence is 0, 1.0, 2.0 (toward Y,Z) because the wind is toward X.
Set the wavelength for the X, Y, and Z directions. For this case, set short wavelengths for X and Y and long wavelengths for Z to produce the turbulence only in the X and Y directions.
The corresponding scene file is mdc08.lws.
Use this file to load all of the aforementioned settings.
5. Let's do the calculation. If you are satisfied with the result, save the data to a file. Specify the filename by the SAVE MDD button and save the data.
6. Go back to Layout and open the Object properties panel. Select MD_Plug as the displacement map plug-in(under the Deformations tab>Add Displacement pull-down menu) and load the saved file.
7. Manipulating the time slider should animate the Real Flag. Now render as you desire.
