
288
The height of a texture is measured in pixels and can be tested but not set. The height of the
texture is rounded from the height of the source of the texture to the nearest power of 2.
Examples
This statement sets the height of the model resource named Tower to 225.0 world units:
member("3D World").modelResource("Tower").height = 225.0
This statement shows that the height of the texture named Marsmap is 512 pixels.
put member("scene").texture("Marsmap").height
-- 512
See also
length (3D)
,
width (3D)
heightVertices
Syntax
member(
whichCastmember
).modelResource(
whichModelResource
).\
heightVertices
Description
3D
#box
model resource property; indicates the number of mesh vertices along the height of the
box. Increasing this value increases the number of faces, and therefore the fineness, of the mesh.
The height of a box is measured along its Y axis.
Set the
renderStyle
property of a model’s shader to
#wire
to see the faces of the mesh of the
model’s resource. Set the
renderStyle
property to
#point
to see just the vertices of the mesh.
The value of this property must be greater than or equal to 2. The default value is 4.
Example
The following statement sets the
heightVertices
property of the model resource named Tower
to 10. Nine polygons will be used to define the geometry of the model resource along its Z axis;
therefore, there will be ten vertices.
member("3D World").modelResource("Tower").heightVertices = 10
See also
height (3D)
highlightPercentage
Syntax
member(
whichCastmember
).model(
whichModel
).toon.highlightPercentage
member(
whichCastmember
).model(
whichModel
).shader.highlight\
Percentage
member(
whichCastmember
).shader(
whichShader
).highlightPercentage
Description
3D
toon
modifier and
#painter
shader property; indicates the percentage of available colors that
are used in the area of the model’s surface where light creates highlights.
The range of this property is 0 to 100, and the default value is 50.
The number of colors used by the
toon
modifier and
#painter
shader for a model is determined
by the
colorSteps
property of the model’s
toon
modifier or
#painter
shader.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...