Radeon ProRender

rprCameraLookAt

Sets camera look-at transformation.

rpr_status rprCameraLookAt( rpr_camera camera,
  rpr_float posx,
  rpr_float posy,
  rpr_float posz,
  rpr_float atx,
  rpr_float aty,
  rpr_float atz,
  rpr_float upx,
  rpr_float upy,
  rpr_float upz);

Parameters

Parameter Description
camera The camera to set transform for.
posx X component of the position.
posy Y component of the position.
posz Z component of the position.
atx X component of the camera center point (aim).
aty Y component of the camera center point (aim).
atz Z component of the camera center point (aim).
upx X component of the up vector.
upy Y component of the up vector.
upz Z component of the up vector.

Notes

Camera orientation is managed by passing the three vectors to rprCameraLookAt().

The first vector gives camera position. The second vector handles the point at which the camera is looking. The third one carries the up vector of the camera.

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.