MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 953

Director scripting reference
Table of Contents

Advertisement

Example
This statement shows the renderers available on the current system:
put getRendererServices().rendererDeviceList
-- [#openGL, #software]
See also
getRendererServices(), renderer, preferred3dRenderer,
renderFormat
Usage
member(whichCastmember).texture(whichTexture).renderFormat
member(whichCastmember).texture[index].renderFormat
member(whichCastmember).shader(whichShader).texture.renderFormat
member(whichCastmember).model(whichModel).shader.texture\
.renderFormat
member(whichCastmember).model(whichModel).shader.textureList\
[index].renderFormat
member(whichCastmember).model(whichModel).shaderList[index].\
texture(whichTexture).renderFormat
member(whichCastmember).model(whichModel).shaderList[index].\
textureList[index].renderFormat
Description
3D property; allows you to get or set the
specifying one of the following values:
uses the value returned by
#default
#rgba8888
#rgba8880
#rgba5650
#rgba5550
#rgba5551
#rgba4444
See
textureRenderFormat
Setting this property for an individual texture overrides the global setting set using
textureRenderFormat
The
renderFormat
specified texture. Each pixel format has a number of digits, with each digit indicating the color
depth being used for red, green, blue, and alpha. The value you choose determines the accuracy of
the color fidelity (including the precision of the optional alpha channel) and thus the amount of
memory used on the video card. You can choose a value that improves color fidelity or a value that
allows you to fit more textures into memory on the video card. You can fit roughly twice as many
16-bit textures as 32-bit textures in the same space.
Example
The following statement sets the
The red, blue, green, and alpha components of the texture will each be drawn using 4 bits of
information.
member("3d").texture("TexPic").renderFormat = #rgba4444
textureRenderFormat
getRendererServices().textureRenderFormat
for information on these values.
.
property determines the pixel format the renderer uses when rendering the
renderFormat
active3dRenderer
for a specific texture by
property of the texture TexPic to #rgba4444.
.
renderFormat
953

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