rprShapeSetMotionTransformCount

Defines the number of transforms for a frame for a shape set with rprShapeSetMotionTransform.

rpr_status rprShapeSetMotionTransformCount(

rpr_shape shape,

rpr_uint transformCount);

Parameters

Parameter

Description

shape

rpr_shape to enable multiple motion transforms for.

transformCount

Number of transform samples for this shape.

Example

To create a motion from matA to matB:

rprShapeSetTransform(shape, false, matA) // matrix at time=0
rprShapeSetMotionTransform(shape, false, matB, 1) // matrix at time=1
rprShapeSetMotionTransformCount(shape,1) // use 1 motion matrix

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.