Radeon ProRender

rprShapeSetLinearMotion

Sets shape linear motion.

Warning

DEPRECATED - will be removed in the future. Please use rprShapeSetMotionTransformCount and rprShapeSetMotionTransform instead. RPR_SHAPE_LINEAR_MOTION, RPR_SHAPE_ANGULAR_MOTION and RPR_SHAPE_SCALE_MOTION are also DEPRECATED.

rpr_status rprShapeSetLinearMotion( rpr_shape shape,
  rpr_float x,
  rpr_float y,
  rpr_float z);

Parameters

Parameter Description
shape The shape to set linear motion for.
x X component of a motion vector.
y Y component of a motion vector.

Notes

Motion blur must be enabled with camera exposure.

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.