Camera
Represents a Camera object.
A camera controls how a 3D sprite views the 3D world. A 3D sprite displays a particular camera's
view into the world.
You can create a reference to a camera by using the
The
property gets the camera at a specified index position in the list of cameras. In Lingo,
camera
you use the
camera
JavaScript syntax, you must use the
The following example creates a reference to the second camera of the 3D cast member "family
room", and assigns it to the variable
-- Lingo syntax
myCamera = member("family room").camera[2]
// JavaScript syntax
var myCamera = member("family room").getPropRef("camera", 2);
Method summary for the Camera object
Method
addBackdrop
addOverlay
insertBackdrop
insertOverlay
removeBackdrop
removeOverlay
Property summary for the Camera object
Property
backdrop
backdrop[].blend (3D)
backdrop[].loc (backdrop and overlay)
backdrop[].regPoint (3D)
backdrop[].rotation (backdrop and overlay)
backdrop[].scale (3D)
backdrop[].source
backdrop.count (3D)
child (3D)
colorBuffer.clearAtRender
colorBuffer.clearValue
fieldOfView (3D)
142
Chapter 8: 3D Objects
property directly from the 3D
getPropRef()
myCamera
property of the 3D
camera
object to create a reference. In
Member
method to create a reference.
.
fog.far (fog)
fog.near (fog)
hither
orthoHeight
overlay
overlay[].blend (3D)
overlay[].loc (backdrop and overlay)
overlay[].regPoint (3D)
overlay[].rotation (backdrop and overlay)
overlay[].scale (3D)
overlay[].source
overlay.count (3D)
object.
Member
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