Camera Structure. More...
Detailed Description
Camera Structure.
- Version
- 2.0
The m_bOrthographic influences the interpretation of the m_dXFovy and m_dYFovy members, as described in the member descriptions.
Field Documentation
◆ m_bOrthographic
A3DBool A3DGraphCameraData::m_bOrthographic |
A value of true indicates an orthographic projection. A value of false indicates a perspective projection.
◆ m_sLocation
A3DVector3dData A3DGraphCameraData::m_sLocation |
Position of the camera.
◆ m_sLookAt
A3DVector3dData A3DGraphCameraData::m_sLookAt |
Position of the target.
◆ m_sUp
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.
◆ m_dXFovy
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.
◆ m_dYFovy
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.
◆ m_dAspectRatio
A3DDouble A3DGraphCameraData::m_dAspectRatio |
Ratio of X to Y. Usually, X and Y are equal and the aspect ratio is set to 1.
◆ m_dZNear
A3DDouble A3DGraphCameraData::m_dZNear |
Near clipping plane distance from the viewer (positive value).
◆ m_dZFar
A3DDouble A3DGraphCameraData::m_dZFar |
Far clipping plane distance from the viewer (positive value).
◆ m_dZoomFactor
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.