textureRenderFormat
Usage
getRenderServices().textureRenderFormat
Description
3D
rendererServices
textures in all 3d cast members. Use a texture's texture.RenderFormat property to override this
setting for specific textures only. Smaller sized bit formats (i.e 16 bit variants such as #rgba5551)
use less hardware accelerator video ram, allowing you to make use of more textures before being
forced to switch to software rendering. Larger sized bit formats (i.e. 32 bit variants such as
#rgba8888) generally look better. In order to use alpha transparency in a texture, the last bit must
be nonzero. In order to get smooth transparency gradations the alpha channel must have more
than 1 bit of precision.
Each pixel formats has four digits, with each digit indicating the degree of precision for red, green,
blue, and alpha. The value you choose determines the accuracy of the color fidelity (precision of
the alpha channel) and the amount of memory used by the hardware texture buffer. You can
choose a value that improves color fidelity or a value that allows you to fit more textures on the
card. You can fit twice as many 16-bit textures as 32-bit textures in the same space. If a movie uses
more textures than fit on a card at a the same time, Director switches to
You can specify any of the following values for
•
: 32 bit color mode with 8 bits each for red, green, blue, and alpha
#rgba8888
•
: same as above, with no alpha value
#rgba8880
•
: 16-bit color mode with no alpha; 5 bits for red, 6 for green, 5 for blue
#rgba5650
•
: 16-bit color mode with no alpha; 5 bits each for red, green, and blue, with no
#rgba5550
alpha measure
•
: 16-bit color mode with 5 bits each for red, green, and blue; 1 bit for alpha
#rgba5551
•
: 16-bit color mode with 4 bits each for red, green, blue, and alpha
#rgba4444
The default value is
Example
The following statement sets the global
. Each texture in this movie will be rendered in 32-bit color unless its
#rgba8888
texture.renderFormat
getRendererServices().textureRenderFormat = #rgba8888
See also
renderer, preferred3dRenderer, renderFormat,
1034
Chapter 14: Properties
property; allows you to get or set the default bit format used by all
.
#rgba5551
textureRenderFormat
property is set to a value other than
textureRenderFormat
for the 3D member to
#default
getRendererServices()
rendering.
#software
:
.
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