3D Camera Functions

From Danmakufu Wiki
Jump to: navigation, search

SetCameraFocusX

Arguments:
 1) x-coordinate (real)

Sets the x-coordinate of the camera focus.

SetCameraFocusY

Arguments:
 1) y-coordinate (real)

Sets the y-coordinate of the camera focus.

SetCameraFocusZ

Arguments:
 1) z-coordinate (real)

Sets the z-coordinate of the camera focus.

SetCameraFocusXYZ

Arguments:
 1) x-coordinate (real)
 2) y-coordinate (real)
 3) z-coordinate (real)

Sets the x-, y-, and z-coordinates of the camera focus.

SetCameraRadius

Arguments:
 1) distance (real)

Sets the distance of the camera to the focus point.

SetCameraAzimuthAngle

Arguments:
 1) azimuth angle from focus point (real)

Sets the azimuth angle from the focus point.

SetCameraElevationAngle

Arguments:
 1) elevation angle from focus point (real)

Sets the elevation angle from the focus point.

SetCameraYaw

Arguments:
 1) yaw angle of the camera (real)

Sets the horizontal Yaw angle of the camera.

SetCameraPitch

Arguments:
 1) pitch angle of the camera (real)

Sets the vertical Pitch angle of the camera.

SetCameraRoll

Arguments:
 1) roll angle of the camera (real)

Sets the rotational Roll angle of the camera.

GetCameraX

Returns the x-coordinate of the camera.

GetCameraY

Returns the y-coordinate of the camera.

GetCameraZ

Returns the z-coordinate of the camera.

GetCameraFocusX

Returns the x-coordinate of the focus point.

GetCameraFocusY

Returns the y-coordinate of the focus point.

GetCameraFocusZ

Returns the z-coordinate of the focus point.

GetCameraRadius

Returns the distance from the focus point to the camera.

GetCameraAzimuthAngle

Returns the azimuth angle from the focus point to the camera.

GetCameraElevationAngle

Returns the elevation angle from the focus point to the camera.

GetCameraYaw

Returns the horizontal Yaw angle of the camera.

GetCameraPitch

Returns the vertical Pitch angle of the camera.

GetCameraRoll

Returns the rotational Roll angle of the camera.

SetCameraPerspectiveClip

Arguments:
 1) near clipping distance (default 10)
 2) far clipping distance (default 2000)

Objects that are further or nearer than the clipping distance will not be drawn.