EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 142

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

Related product manuals