Camera Structure. More...
Camera Structure.
The m_bOrthographic influences the interpretation of the m_dXFovy and m_dYFovy members, as described in the member descriptions.
A3DUns16 A3DGraphCameraData::m_usStructSize |
Reserved; must be initialized with A3D_INITIALIZE_DATA.
A3DBool A3DGraphCameraData::m_bOrthographic |
A value of true indicates an orthographic projection. A value of false indicates a perspective projection.
A3DVector3dData A3DGraphCameraData::m_sLocation |
Position of the camera.
A3DVector3dData A3DGraphCameraData::m_sLookAt |
Position of the target.
A3DVector3dData A3DGraphCameraData::m_sUp |
Up vector. It should be defined so that it is perpendicular to the vector created between the camera and target position. A non-perpendicular up vector results in unpredictable behavior.
A3DDouble A3DGraphCameraData::m_dXFovy |
For an orthographic projection (m_bOrthographic is true), this member specifies the view size in the X direction. For a perspective projection, it specifies a field of view angle in radians in the X direction. Usually, X and Y are equal and the aspect ratio is set to 1.
A3DDouble A3DGraphCameraData::m_dYFovy |
For an orthographic projection (m_bOrthographic is true), this member specifies the view size in the Y direction. For a perspective projection, it specifies a field of view angle in radians in the Y direction. Usually, X and Y are equal and the aspect ratio is set to 1.
A3DDouble A3DGraphCameraData::m_dAspectRatio |
Ratio of X to Y. Usually, X and Y are equal and the aspect ratio is set to 1.
A3DDouble A3DGraphCameraData::m_dZNear |
Near clipping plane distance from the viewer (positive value).
A3DDouble A3DGraphCameraData::m_dZFar |
Far clipping plane distance from the viewer (positive value).
A3DDouble A3DGraphCameraData::m_dZoomFactor |
Zoom factor. Usually, this parameter is not considered and the zoom factor is specified through m_dXFovy and m_dYFovy. For an orthographic projection, the view size is directly defined by the X and Y parameters. For example m_dXFovy = m_dYFovy = 100 means the size of the view is 100. For a perspective projection, the zoom factor is deduced from the angle of the field of view and the distance camera-target.