Properties of the engraver shader
The
#engraver
number of etched lines by adjusting the
these properties to work with the engraver shader:
Property
name
brightness
density
rotation
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). This is because most video cards scale images to powers of 2. If the image
used does not have pixel dimensions that are a power of 2 (values including 2, 4, 8, 16, etc.), there
will be a decrease in both rendering performance and visual quality. In addition, 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.
Texture properties
Use these properties to work with textures:
Property
name
type
member
360
Chapter 16: Working with Models and Model Resources
shader gives the effect of an engraved metal surface. You can control the size and
Access
Get and set
Get and set
Get and set
Get and set
Access
Get and set
Get
Get and set
and
brightness
density
Description
Name of shader
Value controlling amount of white in
shader
Value controlling number of lines used
to shade an area
Angle describing 2D rotational offset for
engraving lines
Description
Name of texture.
Possible values:
: bitmap defined as part of 3D
#fromfile
import
: bitmap derived from
#fromCastmember
Director cast member
: the texture was
#fromImageObject
created from a Director image object
If the type is
#castmember
identifies the source of the bitmap.
If the type if
#fromfile
.
void
properties, respectively. Use
Default
None
0.0
40.0
0.0
Default
None
None
, this property
None
, this property is
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers