Working with Models and Model Resources
499
Use these properties to work with the level of detail modifier:
Toon modifier properties
The toon modifier changes a model’s rendering to imitate a cartoon drawing style. Only a few
colors are used, and the model’s shader, texture, and related properties are ignored.
Use these properties to work with the toon modifier:
Property
Access
Description
Default
whichModel
.lod.auto
Get and set
TRUE (1)
means that polygons are
automatically reduced based on the distance
from the camera. The fewer polygons that are
drawn, the faster performance will be. The
lod.bias property controls how aggressively
this takes place.
FALSE (0)
means that you can control
polygon reduction on a per-model basis,
provided you’ve attached the level of detail
modifier to the model. The level of detail
modifier lets you override the default settings.
To release level of detail data from memory
once the model has been streamed in, set the
userData
property
sw3D
to
TRUE (1)
.
TRUE (1)
.
whichModel
.lod.bias
Get and set
Aggressiveness with which the level of detail is
reduced when in automatic mode. A value of
0.0
is most aggressive and removes all
polygons. A value of
100.00
should result in
no visible degradation of the geometry. A
middle level can be used to remove polygons
at runtime that were not removed during
authoring.
A value between
0.0
and
100.0
.
The default is
100.0
.
whichModel
.lod.level
Get and set
The percentage of the model resource mesh
resolution to use when the automatic mode is
FALSE (0)
.
A value between
0.0
and
100.0
.
The default is
100.0
.
Property
Access
Description
Default
whichModel
.toon.
style
Get and set
The following are the possible values:
#toon
: sharp transitions between available
colors
#gradient
: smooth transitions between
available colors
#black and white
: sharp transitions
between black and white
#gradient
whichModel
.toon.
colorSteps
Get and set
Maximum number of colors available, rounded
to the nearest power of
2
, with a limit of
16
2
whichModel
.toon.
shadowPercentage
Get and set
The percentage of color steps to be used in
shadows
50
whichModel
.toon.
highlightPercentage
Get and set
The percentage of color steps to be used in
highlight
50
whichModel
.toon.
shadowStrength
Get and set
A floating-point value that determines shadow
darkness
1.0
whichModel
.toon.
highlightStrength
Get and set
A floating-point value that determines
highlight brightness
1.0
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...