Use these properties to work with the level of detail modifier:
Property
.lod.auto
whichModel
.lod.bias
whichModel
.lod.level
whichModel
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
.toon.
whichModel
style
.toon.
whichModel
colorSteps
.toon.
whichModel
shadowPercentage
.toon.
whichModel
highlightPercentage
.toon.
whichModel
shadowStrength
.toon.
whichModel
highlightStrength
Access
Description
TRUE (1)
Get and set
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)
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
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
no visible degradation of the geometry. A
middle level can be used to remove polygons
at runtime that were not removed during
authoring.
Get and set
The percentage of the model resource mesh
resolution to use when the automatic mode is
FALSE (0)
Access
Description
Get and set
The following are the possible values:
#toon
: sharp transitions between available
colors
#gradient
available colors
#black and white
between black and white
Get and set
Maximum number of colors available, rounded
to the nearest power of
Get and set
The percentage of color steps to be used in
shadows
Get and set
The percentage of color steps to be used in
highlight
Get and set
A floating-point value that determines shadow
darkness
Get and set
A floating-point value that determines
highlight brightness
means that polygons are
means that you can control
sw3D
TRUE (1)
property
to
100.00
should result in
.
: smooth transitions between
: sharp transitions
2
, with a limit of
Working with Models and Model Resources 499
Default
TRUE (1)
.
.
A value between
0.0
100.0
and
.
The default is
100.0
.
A value between
0.0
100.0
and
.
The default is
100.0
.
Default
#gradient
2
16
50
50
1.0
1.0
Need help?
Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?