Radeon ProRender


Sets the number of motion matrices for the camera.

rpr_status rprCameraSetMotionTransformCount( rpr_camera camera,
  rpr_uint transformCount);


Parameter Description
camera The camera to set motion transform count for.
transformCount Number of motion matrices (set with rprCameraSetMotionTransform()) to use. Set transformCount = 0 if you don’t use motion.


Set transformCount=0 if you don’t use motion.

For the moment, if you use motion in Northstar, only transformCount=1 is supported.


To create a motion from matA to matB:

rprCameraSetTransform(camera, false, matA) // matrix at time=0
rprCameraSetMotionTransform(camera, false, matB, 1) // matrix at time=1
rprCameraSetMotionTransformCount(camera,1) // use 1 motion matrix


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.