Radeon ProRender


Sets camera angular motion.


rprCameraSetAngularMotion(), rprCameraSetLinearMotion(), RPR_CAMERA_ANGULAR_MOTION and RPR_CAMERA_LINEAR_MOTION are still supported but are deprecated in Northstar. It is recommended to use the following new API references instead: rprCameraSetMotionTransformCount() and rprCameraSetMotionTransform(), respectively.

rpr_status rprCameraSetAngularMotion( rpr_camera camera,
  rpr_float x,
  rpr_float y,
  rpr_float z,
  rpr_float w);


Parameter Description
camera The camera to set angular motion for.
x X coordinate of the rotation axis.
y Y coordinate of the rotation axis.
z Z coordinate of the rotation axis.
w Rotation angle in radians.


Sets the rotation for the camera over the length of one frame. Rotation is set by specifying the axis to rotate around and the angle of rotation in radians.


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.