rprCameraSetOrthoHeight

Sets orthographic view volume height.

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

rpr_status rprCameraSetOrthoHeight(

rpr_camera camera,

rpr_float height);

Parameters

Parameter

Description

camera

The camera to set volume height for.

height

View volume height 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.