The property SciChart3DSurface.Camera defines an ICameraController instance. By default this interface is implemented in Camera3D class.
By default, the SciChart3DSurface.Camera is set to a new Camera3D instance which defines the Position, Target (in world coordinates) of the camera, and whether the camera is in Perspective or Orthogonal projection modes.
Above: the representation of a Camera in 3D Space. The camera is attached to the SciChart3DSurface.Camera property and is defined by a Position, Target, plus other properties which define the properties of the viewport.
Camera Position, Target
The camera is defined by a Position, Target which are XYZ vectors in World Coordinates.
Other properties which define the viewport as seen by the camera include:
- Position and Target which define the position and target of the camera in World Coordinates.
- OrbitalPitch and OrbitalYaw which define the pitch and yaw around the target in Radians
- Radius which is the distance of the Camera Position to the Camera Target
- AspectRatio which defines the aspect ratio.
- ProjectionMode which defines whether the camera is Perspective or Orthogonal
- OrthoWidth and OrthoHeight, which define the width, height of the projected viewport when in ProjectionMode Orthogonal.
- FieldOfView which is the FOV of the camera in radians.
- NearClip and FarClip which define when clipping of close or far objects should occur.
The "Modify Camera3D Properties" example shows how to manipulate the camera, and how to switch between perspective and orthoginal modes.