20.1.5.5 camera

This element defines the placement and properties of the camera in the 3D scene. The camera position and properties modify the view of the scene.

[Example: Consider the following example of a camera in DrawingML:

<a:camera prst="orthographicFront">
  <a:rot lat="19902513" lon="17826689" rev="1362739"/>
</a:camera>

In this example, we see a preset camera being defined along with a rotation containing latitude, longitude, and revolution overrides provided that further rotate the camera around the scene. The effect of this camera can be seen on the following shape:

image

end example]

Attributes

zoom (Zoom)

Defines the zoom factor of a given camera element. The zoom modifies the scene as a whole and zooms in or out accordingly.

[Example: Consider the following example of a zoom

in DrawingML:

    <a:camera prst="perspectiveContrastingRightFacing"
        fov="6900000" zoom="200%">
        <a:rot lat="1200000" lon="18000000" rev="1200000"/>
    /a:camera>

In this example, we see a zoom being used which zooms the scene by 200%. end example]

The possible values for this attribute are defined by the ST_PositivePercentage simple type (20.1.10.46).

prst (Preset Camera Type)

Defines the preset camera that is being used by the camera element. The preset camera defines a starting point for common preset rotations in space.

[Example: Consider the following example of a

prst in DrawingML:

    <a:camera prst="perspectiveContrastingRightFacing"
        fov="6900000">
        <a:rot lat="1200000" lon="18000000" rev="1200000"/>
    </a:camera>

In this example, we see a prst being defined as perspectiveContrastingRightFacing. end example]

The possible values for this attribute are defined by the ST_PresetCameraType simple type (20.1.10.47).

fov (Field of View)

Provides an override for the default field of view for the camera. Different perspectives can be obtained by modifying this attribute.

[Example: Consider the following example of a fov in DrawingML:

    <a:camera prst="perspectiveContrastingRightFacing"
        fov="6900000">
        <a:rot lat="1200000" lon="18000000" rev="1200000"/>
    </a:camera>

In this example, we see a fov being defined which modifies the default fov for the preset camera. end example]

The possible values for this attribute are defined by the ST_FOVAngle simple type (20.1.10.26).

[Note: The W3C XML Schema definition of this element’s content model (CT_Camera) is located in A.4.1. end note]

Last updated on