User Guide
Controlling the 3D World 533
Use the following properties to work with 3D cast members in Lingo:
Property Access Description Default
preload Get and set TRUE (1) or FALSE (0) specification of
whether the member is preloaded before display
and playback or streamed in during playback. This
property is only available for linked cast members.
None
animation
Enabled
Get and set TRUE (1) or FALSE (0) specification of
whether animation, if any, will play.
TRUE (1)
loop
Get and set TRUE (1) or FALSE (0) specification of
whether animation loops or not.
TRUE (1)
directTo
Stage
Get and set TRUE (1) or FALSE (0) specification of
whether rendering occurs directly to the Stage or to
the Director offscreen buffer. If
TRUE (1), other
sprites that intersect with this sprite may flicker. If
FALSE (0), rendering layers well, but speed
declines.
TRUE (1):
rendering occurs
directly to the
Stage
camera
Position
Get and set Independent x,y,z translation for the default
camera with values ranging from
Float_Min to
Float_Max.
vector
(0.0, 0.0,
250.0)
camera
Rotation
Get and set Independent x,y,z rotation transforms for the
default camera with values ranging from
Float_Min to Float_Max.
vector
(0.0, 0.0,
0.0)
ambient
Color
Get and set Light applied to entire scene. rgb(0,0,0)
backColor
Get and set Background color in all views. rgb(0,0,0)
directional
Color
Get and set Color of single “default” directional light. rgb(255,
255,255)
directional
Preset
Get and set Absolute position of the single “default”
directional light:
#None
#TopLeft
#TopCenter
#TopRight
#MiddleLeft
#MiddleCenter
#MiddleRight
#BottomLeft
#BottomCenter
#BottomRight
#TopCenter
specularColor Get and set Specular color of first shader: the color of
reflections from the shader.
rgb(255,
255,255)
reflectivity
Get and set Reflectivity of first shader, with values from 0.0 to
100.0.
0.0
diffuseColor
Get and set Diffuse color of first shader: the shader’s overall
color.
rgb(255,
255,255)
textureType
Get and set Default texture type for world. Values are as follows:
#none: no texture
#default: use original texture from Shader
#member: use image from specified cast member
#default