fieldOfView (3D)
763
fieldOfView
Usage
-- Lingo syntax
spriteObjRef
.fieldOfView
// JavaScript syntax
spriteObjRef
.fieldOfView;
Description
QTVR sprite property; gives the specified sprite’s current field of view in degrees.
This property can be tested and set.
fieldOfView (3D)
Usage
member(
whichCastmember
).camera(
whichCamera
).fieldOfView
sprite(
whichSprite
).camera{(
index
)}.fieldOfView
Description
3D camera property; indicates the angle formed by two rays: one drawn from the camera to the
top of the projection plane, and the other drawn from the camera to the bottom of the projection
plane.
The images of the models in the 3D world are mapped onto the projection plane, which is
positioned in front of the camera like a screen in front of a movie projector. The projection plane
is what you see in the 3D sprite. The top and bottom of the projection plane are defined by the
fieldOfView
property. Note, however, that the sprite is not resized as the value of the
fieldOfView
property changes. Instead, the image of the projection plane is scaled to fit the rect
of the sprite.
The value of this property is meaningful only when the value of the camera’s
projection
property is set to
#perspective
. When the
projection
property is set to
#orthographic
, use
the camera’s
orthoHeight
property to define the top and bottom of the projection plane.
The default setting for this property is 30.0.
Example
This statement sets the
fieldOfView
property of camera 1 to 90:
member("3d world").camera[1].fieldOfView = 90
See also
orthoHeight
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...