MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 1033

Director scripting reference
Table of Contents

Advertisement

#wrapCylindrical
the middle of the texture and then the texture were rolled around the surface to form a
cylinder. The
wrapTransformList[textureLayerIndex]
before the texture coordinates are generated in model space. With an identity
wrapTransformList[textureLayerIndex]
such that the texture is wrapped from the -Y axis, starting at the left edge of the texture, toward
the +X axis, around the Z axis. The up direction of the texture is toward the +Z axis.
#wrapSpherical
middle of the texture and then all four corners of the texture were pulled up to meet at the top.
The
wrapTransformList[textureLayerIndex]
texture coordinates are generated in model space. With an identity
wrapTransformList[textureLayerIndex]
space origin and oriented such that the texture is wrapped from the -Y axis, starting at the left
edge of the texture, toward the +X axis, around the Z axis. The up direction of the texture is
toward the +Z axis.
is similar to
#reflection
continuously reprojected onto the surface from a fixed orientation. When the model rotates,
the texture coordinates will not rotate with it. Simulates light reflected on an object by its
environment. This setting disables
#diffuseLight
stores the results in the referenced mesh. This setting disables
#specularLight
and stores the results in the referenced mesh. This setting disables
Example
In this example, a shader is set up to simulate a reflective garden ball. The shader's first
textureLayer is set to a spherical mapping and the third textureLayer is set to use a #refection style
mapping. The shader's textureList[3] entry will appear to reflected from the environment onto all
models which use this shader.
member("scene").shader("GardenBall).textureList[1] = \
member("scene").texture("FlatShinyBall")
member("scene").shader("GardenBall").textureModeList[1] = \
#wrapSpherical
member("scene").shader("GardenBall").textureList[3] = \
member("scene").texture("GardenEnvironment")
member("scene").shader("GardenBall").textureModeList[3] = \
#reflection
See also
textureTransformList,
wraps the texture around the surface as though the surface were placed in
wraps the texture around the surface as though the surface were placed in the
#wrapSpherical
wrapTransform
generates diffuse light mapping texture coordinate values, one per vertex, and
generates specular light mapping texture coordinate values, one per vertex,
wrapTransform
is applied to the mapping space
(the default), the cylindrical mapping is oriented
is applied to the mapping space before the
, the spherical mapping is located at the model
except that the new texture coordinates are
.
wrapTransform
.
.
wrapTransform
textureModeList 1033

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents