<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.
<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 |
---|
|
Child Elements |
Subclause |
---|---|
|
Attributes |
Description |
---|---|
|
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 The possible values for this attribute are defined by the ST_FOVAngle simple type (§5.1.12.24). |
|
Defines the preset camera that is being used by the example:
<a:camera prst="perspectiveContrastingRightFacing" fov="6900000"> <a:rot lat="1200000" lon="18000000" rev="1200000"/> </a:camera> In this example, we see a The possible values for this attribute are defined by the ST_PresetCameraType simple type (§5.1.12.47). |
|
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 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>