Chapter 19
494
Properties of the newsprint shader
The
#newsprint
shader creates a dithering effect similar to a newspaper photograph. Use these
properties to work with the newsprint shader:
Properties of the engraver shader
The
#engraver
shader gives the effect of an engraved metal surface. You can control the size and
number of etched lines by adjusting the
brightness
and
density
properties, respectively. Use
these properties to work with the engraver shader:
Textures
Each shader can have textures applied to it. Textures are 2D images drawn on the surface of a
model. The appearance of the model’s surface is the combined effect of the shader and textures
applied to it. If you do not specify a texture, a default red-and-white bitmap is used.
The pixel height and width of the 2D images you use as textures should be powers of 2 (that is, 2,
4, 8, 16, 32, and so on). All the textures used in a 3D scene must be able to fit in the computer’s
video RAM at the same time. If not, Director switches to software rendering, which slows
performance.
Be aware of the limitations of your video RAM and that of your intended audience. Some video
cards have as little as 4 megabytes of video RAM. Carefully budget your total texture size when
designing your 3D world.
highlight
Percentage
Get and set
Percentage of lighting steps to be treated as
highlight
50
shadowStrength
Get and set
Factor controlling darkness of shadowed
areas
1.0
highlight
Strength
Get and set
Factor controlling brightness of highlighted
areas
1.0
Property
Access
Description
Default
name
Get and set
Name of shader
None
brightness
Get and set
Value controlling amount of white in shader
0.0
density
Get and set
Value controlling density of dots in newsprint
image
45.0
Property
Access
Description
Default
name
Get and set
Name of shader
None
brightness
Get and set
Value controlling amount of white in shader
0.0
density
Get and set
Value controlling number of lines used to
shade an area
40.0
rotation
Get and set
Angle describing 2D rotational offset for
engraving lines
0.0
Property
Access
Description
Default
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...