Radeon ProRender


Sets camera linear motion.


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

rpr_status rprCameraSetLinearMotion( rpr_camera camera,
  rpr_float x,
  rpr_float y,
  rpr_float z);


Parameter Description
camera The camera to set linear motion for.
x X coordinate of the motion vector.
y Y coordinate of the motion vector.
z Z coordinate of the motion vector.


Motion Blur will only have an effect with rprCameraSetExposure() set > 0.


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.