
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)
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...