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
Содержание DIRECTOR MX-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...