<camera> (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:

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

Parent Elements

<scene3d>5.1.4.1.26); <scene3d>5.9.5.5)

Child Elements

Subclause

<rot> (Rotation)

§5.1.7.11

Attributes

Description

<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:
<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. ]

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

<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:
<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. ]

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

<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:
<a:camera prst="perspectiveContrastingRightFacing" 
  fov="6900000" zoom="200000">
  <a:rot lat="1200000" lon="18000000" rev="1200000"/>
/a:camera>

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

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

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Camera">
	<sequence>
	<element name="rot" type="CT_SphereCoords" minOccurs="0" maxOccurs="1"/>
	</sequence>
	<attribute name="prst" type="ST_PresetCameraType" use="required"/>
	<attribute name="fov" type="ST_FOVAngle" use="optional"/>
	<attribute name="zoom" type="ST_PositivePercentage" use="optional" default="100000"/>
</complexType>