rprCameraSetOrthoWidth

Sets orthographic view volume width.

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. Setting the volume width determines the area which the Orthographic camera projection will cover.

rpr_status rprCameraSetOrthoWidth(

rpr_camera camera,

rpr_float width);

Parameters

Parameter

Description

camera

The camera to set volume width for

width

View volume width in meters. Default is 1 m.

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.