Cameras - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

Cameras

Cameras act as view ports into the 3D world. By default, a newly added camera's view is
positioned at the world's origin, the vector (0,0,0), and looks down the negative z-axis. Changing
a camera's
transform
created from a 3D cast member, the sprite uses one of the cast member's cameras. Changing the
camera that the sprite is using changes what's seen in the sprite.
Cameras can also have overlays and backdrops. Overlays are 2D images drawn in front of the
camera's lens. Backdrops are 2D images drawn behind the 3D scene. Backdrops provide a
background image for the scene regardless of which way the camera is pointing.
Camera properties
Use these properties to work with cameras:
Property Name
name
parent
child.count
transform
userData
hither
yon
rect
projection
Angle
property affects the camera's position and orientation. When a 3D sprite is
Access
Description
Get and set
Unique name of this camera.
If the camera was exported from a 3D
modeling program, the name is the name
assigned there.
Get and set
The model, light, camera, or group that is
this light's parent.
If the camera has no parent, it cannot
contribute light.
Get
Number of immediate children (no
grandchildren) the camera has.
Get and set
Lingo transform object representing
camera's position relative to its parent's
transform.
transform.position
The
gives the relative position;
transform.rotation
relative rotation.
Get and set
A property list associated with this camera.
The list defaults to the properties assigned
in the 3D modeling tool, but users can add
or delete properties at any time.
Get and set
A specified distance from the camera that
defines the near z-axis clipping of the view
frustum. Objects closer than hither are not
drawn.
Get and set
A specified distance from the camera that
defines the far z-axis clipping of the view
frustum. Objects farther than yon are
not drawn.
Get and set
The rectangle controlling the screen size
and position of the camera, with the
coordinates given relative to the upper left
corner of the sprite.
Get and set
The vertical projection angle of the view
frustum.
property
gives the
Working with Models and Model Resources 515
Default
None
group
("world")
0
Identity transform
Properties assigned
in 3D modeling tool
5.0
3.403e38
rect(0,0,320,2
00)
30.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?

This manual is also suitable for:

Director mx

Table of Contents