Accessibility
 
Home > Products > Director > Support > Intermediate Director 3D Features
Macromedia Director Support Center - Intermediate Director 3D Features
Turning off the LOD modifier

The first step in preparing a model for mesh deformation is to make sure that the level of detail (LOD) modifier is disabled. This is because the LOD modifier performs its own changes to the mesh of a model and can conflict with the mesh deform modifier.

The following code, found in the initialize handler in the Twister behavior, sets the auto property of the LOD modifier to FALSE .

pModel.resource.lod.auto = false -- turns off lod so that the mesh deform is done on the real geometry
The next line of the handler sets the level property of the LOD modifier to 100, indicating that 100% of the model's geometry should be used and displayed at all times.

pModel.resource.lod.level = 100  -- use 100% of the original polygons

Notice that the LOD modifier is a property of the model resource, rather than the model.

To Table of Contents Back to Previous document Forward to next document