Click or drag to resize
Ab4d.SharpEngine logo

Camera Properties

The Camera type exposes the following members.

Properties
 NameDescription
Public propertyAspectRatio Gets or sets an aspect ratio (width divided by height) of the viewport that is showing the 3D scene.
Public propertyAutomaticPlaneDistanceCalculationAdjustmentFactor Gets or sets a float that is multiplied by the automatically calculated near and far plane distance. This makes the near plane slightly closer and far plane slightly farther away. This prevents clipping the objects that are located very close to near and far planes. Default value is 1.05 (5%).
Public propertyCameraAnimation Gets the CameraAnimation class that can be used to animate the camera.
Public propertyCameraLight Gets an instance of CameraLight that is created for this Camera. This light is created based on the value of ShowCameraLight property.
Public propertyFarPlaneDistance Gets or sets a value that specifies the distance from the camera of the camera's far clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by setting IsAutomaticFarPlaneDistanceCalculation to false.
Public propertyFieldOfView Gets or sets a value that represents the camera field of view in degrees. By default this represents horizontal field of view, but this can be changed by setting the IsHorizontalFieldOfView property. The property is used when the ProjectionType is set to Perspective and not for Orthographic projection type. Default value is 45 degrees.
Public propertyIsAutomaticFarPlaneDistanceCalculation Gets or sets a Boolean that specifies if is automatically calculated from the 3D scene bounding box and camera position. This property is set to false, when the value of FarPlaneDistance is manually changed by the user. Default value is true.
Public propertyIsAutomaticNearPlaneDistanceCalculation Gets or sets a Boolean that specifies if is automatically calculated from the 3D scene bounding box and camera position. This property is set to false, when the value of NearPlaneDistance is manually changed by the user. Default value is true.
Public propertyIsCameraChangedRaisedOnAutomaticPlaneDistanceCalculation Gets or sets a Boolean that specify if CameraChanged event is raised when the NearPlaneDistance and FarPlaneDistance are automatically calculated and then the SetPlaneDistances(Single, Single, Boolean) method is called. Default value is false.
Public propertyIsHorizontalFieldOfView Gets or sets a boolean that specifies if horizontal Field of View is used (as in WPF 3D) or vertical Field of view is used (false = as in DirectX). Default value is true.
Public propertyIsRotating Gets or sets a boolean that specifies if the camera is currently being animated.
Public propertyMaxFarPlaneDistance When MaxFarPlaneDistance is set to any value that is not float.NaN and IsAutomaticFarPlaneDistanceCalculation is true, the calculated far plane distance is never bigger then the specified value. This value must be bigger then MinNearPlaneDistance or its value is not used. Default value is NaN.
Public propertyMinNearPlaneDistance When MinNearPlaneDistance is set to any value that is not float.NaN and IsAutomaticNearPlaneDistanceCalculation is true, the calculated near plane distance is never smaller then the specified value. Default value is NaN.
Public propertyName Gets or sets the name of the camera.
Public propertyNearPlaneDistance Gets or sets a value that specifies the distance from the camera of the camera's near clip plane. By default NearPlaneDistance is automatically calculated from the 3D scene bounding box and camera position. This can be disabled by setting IsAutomaticNearPlaneDistanceCalculation to false.
Public propertyProjectionType Gets or sets the type of projection (perspective or orthographic). Default value is Perspective projection.
Public propertySceneView Gets the SceneView that this camera belong to. This property is set internally by the SceneView.
Public propertyShowCameraLight Gets or sets a value that defines if a CameraLight is created for this camera. By default the value is set to Auto that means that the CameraLight is created when there are not other lights in the scene.
Public propertyVersion Gets the version number of this Camera. Version is increased each time the camera is changed. This can be used to check if the camera was changed between two points in time. Note: When camera is changed a lot of times, the Version value can overflow from positive to negative numbers (to prevent problems do not check for bigger value but for not equal value)
Public propertyViewWidth Gets or sets the width of the camera's view that is used only by orthographic camera (view height is get by dividing the ViewWidth by AspectRatio). Default value is 100.
Top
See Also