Documentation

Create Perspective Fov - Open Dev Kit Documentation

Open Dev Kit Documentation :: General :: Matrix 4x 4 :: Create Perspective Fov

Root.Matrix4x4.CreatePerspectiveFov(
  FOV Float,
  Aspect Float,
  Z Near Float,
  Z Far Float
) Matrix 4x 4
Creates a perspective projection matrix based on field of view

Parameters

FOV Float
Field of view angle (in radians)
Aspect Float
Aspect ratio of the view volume (width / height)
Z Near Float
Distance to the near clipping plane from the camera. Avoid setting too low (0) as that can cause glitches
Z Far Float
Distance to the far clipping plane from the camera. Avoid setting too high as objects may not render properly due to depth buffer limitations

Return Value

Matrix 4x 4

If you think anything is missing, please feel free to: submit documentation feedback on this page