
368
Chapter 16: Working with Models and Model Resources
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:
Inker modifier properties
The inker modifier adds silhouette, crease, and boundary edges to an existing model. Silhouettes
are edges along the border of a model. Crease edges are created when the angle between two areas
of the mesh exceeds a given threshold.
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
whichModel
.toon.
lineColor
Get and set
Color object describing line color
Black
(rgb 0,0,0)
whichModel
.toon.
silhouettes
Get and set
TRUE (1)
or
FALSE (0)
value indicating
presence or absence of lines around
silhouettes
TRUE (1)
whichModel
.toon.
creases
Get and set
TRUE (1)
or
FALSE (0)
value indicating
whether lines are drawn when mesh
boundaries meet at a crease
TRUE (1)
whichModel
.toon.
creaseAngle
Get and set
A floating-point value controlling crease
angle detection
0.01
whichModel
.toon.
boundary
Get and set
TRUE (1)
or
FALSE (0)
value indicating
whether lines are drawn at boundary of
surface
TRUE (1)
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...