07.12.2012 Views

Adobe Director Basics

Adobe Director Basics

Adobe Director Basics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ADOBE DIRECTOR BASICS<br />

3D: Controlling appearance<br />

LOD properties<br />

The #lod modifier adds three properties to a model:<br />

model.lod.auto: If TRUE, the model obeys the lod.bias setting. If FALSE, it obeys the lod.level setting.<br />

model.lod.bias: Floating point value from 0.0 to +100.0. If set to 0.0, the LOD modifier removes all polygons, even<br />

when the model is immediately in front of the camera. If it is set to 100.0, it does not start to remove polygons until<br />

the model appears very small in the distance. The precise distance at which the bias setting starts to take effect<br />

depends on the camera's projection angle. The default setting is 100.0.<br />

model.lod.level indicates the amount of detail removed by the modifier when its auto property is set to FALSE. The<br />

range of this property is 0.0 to 100.00. When the modifier’s auto property is set to TRUE, the value of the level<br />

property is dynamically updated. If you set the value manually, it will not have any effect.<br />

With lod.bias at 100.0, the auto setting starts to take effect when the model appears small in the distance<br />

See also targetFrameRate.<br />

Subdivision surfaces (SDS) modifier<br />

The #sds modifier adds geometric detail to models and synthesizes additional details to smooth out curves as the model<br />

moves closer to the camera. The #sds modifier directly affects the model resource. All models that use the same<br />

resource will be affected. To see the effect of the #sds modifier, download the movie SDS.dir, and launch it.<br />

Note: The #sds modifier and the #lod modifier behave in contrasting ways. Before adding the sds modifier, it is<br />

recommended that you set the lod.auto modifier property to FALSE and set the lod.level modifier property to the<br />

required resolution, as follows:<br />

vModel = member("3D").model("myModel")<br />

vModel.lod.auto = 0<br />

vModel.lod.level = 100<br />

vModel.addmodifier(#sds)<br />

The #sds modifier is best used on models that were created in a third-party 3D design application. If used with models<br />

created from Shockwave 3D primitives, the modifier affects the model resource, and all the models that share that<br />

resource.<br />

Adding the SDS modifier to a model<br />

The following command adds the #sds modifier to model 2, named "MakeMeSmooth" of the member "3D".<br />

Last updated 8/26/2011<br />

195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!