3D Lingo Dictionary > E-K > fieldOfView |  |

fieldOfView

Syntax

    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 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`