rprCameraSetFocalLength
Sets camera’s focal length.
The Focal Length setting determines the Field Of View (FOV) for a camera. A small focal length gives a wide-angle FOV. A large focal length results in a narrow-angle FOV. Although any floating point value is acceptable, choices that correspond to physical lens measurements would be logical, because AMD Radeon ProRender emulates real-world camera lenses.
rpr_status rprCameraSetFocalLength( |
rpr_camera camera, |
rpr_float flength); |
Parameters
Parameter |
Description |
---|---|
camera |
The camera to set the focal length for. |
flength |
Focal length in millimeters, default is 35 mm. |
Notes
Only used with RPR_CAMERA_MODE_PERSPECTIVE.
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.