942
Chapter 14: Properties
quality (3D)
Usage
member(
whichCastmember
).texture(
whichTexture
).quality
member(
whichCastmember
).shader(
whichShader
).texture\
(
whichTexture
).quality
member(
whichCastmember
).model(
whichModel
).shader.texture\
(
whichTexture
).quality
member(
whichCastmember
).model( whichModel ).\
shader.texturelist[TextureListIndex].quality
member(
whichCastmember
).model(
whichModel
).shaderList\
[
shaderListIndex
]. texture(
whichTexture
).quality
member(
whichCastmember
).model( whichModel ).shaderList\
[ shaderListIndex ]. texturelist[ TextureListIndex ].quality
Description
3D texture property; lets you get or set the image quality of a texture by controlling the level of
mipmapping applied to the texture. Mipmapping is a process by which additional versions of the
texture image are created in several sizes that are smaller than the original image. The 3D Xtra
extension then uses whichever version of the image is most appropriate to the current size of the
model on the screen and changes the version of the image that is being used when needed.
Trilinear mipmapping is higher in quality and uses more memory than bilinear mipmapping.
Mipmapping is not the same as filtering, although both improve texture appearance. Filtering
spreads errors out across the texture’s area so that errors are less concentrated. Mipmapping
resamples the image to make it the appropriate size.
This property can have the following values:
•
#low
is the same as off, and mipmapping is not used for the texture.
•
#medium
enables a low-quality (bilinear) mipmapping for the texture.
•
#high
enables a high-quality (trilinear) mipmapping for the texture.
The default is
#low
.
Example
This statement sets the
quality
property of the texture Marsmap to
#medium
:
member("scene").texture("Marsmap").quality = #medium
See also
nearFiltering
radius
Usage
modelResourceObjectReference
.radius
member(
whichCastmember
).modelResource(
whichModelResource
).radius
Description
3D model property; when used with model resource of type
#sphere
or
#cylinder
, allows you
to get or set the radius of the model.
The
radius
property determines the sweep radius used to generate the model resource. This
property’s value must always be set to greater than 0.0, and has a default value of 25.0.
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...