rprContextSetAOVindexLookup

Sets an objectID or MaterialID value (key) to a certain RGBA value in the AOV.

rpr_status rprContextSetAOVindexLookup(

rpr_context context,

rpr_int key,

rpr_float colorR,

rpr_float colorG,

rpr_float colorB,

rpr_float colorA);

Parameters

Parameter

Description

context

The context to set AOV index lookup for.

key

ID.

colorR

Red channel.

colorG

Green channel.

colorB

Blue channel.

colorA

Alpha channel.

Notes

Change the color of AOV rendering IDs, like : RPR_AOV_MATERIAL_ID , RPR_AOV_OBJECT_ID, RPR_AOV_OBJECT_GROUP_ID.

For example, you can render all the shapes with ObjectGroupID = 4 in the Red color inside the RPR_AOV_OBJECT_GROUP_ID AOV.

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.