Radeon ProRender

rprCameraSetMode

Sets camera mode.

AMD Radeon ProRender has the two main camera modes: Perspective (Default) projection and Orthographic projection. The first mode is a physically accurate model of the perspective cameras we are familiar with in the real world. The second mode does not employ perspective. This is particularly useful in architectural scenarios.

Additionally, there are the following advanced camera modes:

  • RPR_CAMERA_MODE_LATITUDE_LONGITUDE_360
  • RPR_CAMERA_MODE_LATITUDE_LONGITUDE_STEREO
  • RPR_CAMERA_MODE_CUBEMAP
  • RPR_CAMERA_MODE_FISHEYE

See the description of rpr_camera_mode for information on those.

rpr_status rprCameraSetMode( rpr_camera camera,
  rpr_camera_mode mode);

Parameters

Parameter Description
camera The camera to set mode for.
mode Camera mode, default is RPR_CAMERA_MODE_PERSPECTIVE.

Notes

Certain camera options (such as focal length) are only available with Perspective or Orthographic camera modes.

Return

Returns RPR_SUCCESS in case of success, or RPR_ERROR code if a problem was encountered.

To learn how to handle errors in AMD Radeon ProRender SDK, see Error Handling.