RadeonProRenderSDK icon indicating copy to clipboard operation
RadeonProRenderSDK copied to clipboard

Documentation needed for rprCameraSetUVDistortion()

Open miancule opened this issue 1 year ago • 1 comments

I just noticed a new camera setting in the latest update:

/** @brief Set distorion image for camera * * @param camera The camera to set UV Distortion for * @param distortionMap distorion image * @return RPR_SUCCESS in case of success, error code otherwise */ extern RPR_API_ENTRY rpr_status rprCameraSetUVDistortion(rpr_camera camera, rpr_image distortionMap);

..but there seems to be no documentation of the actual distortion map format and effect on the (supposedly!) camera rays generation. I was wondering if this is meant to be a way to add lens distortion to the camera.

An update to the documentation would be really appreciated, thanks!

miancule avatar Apr 25 '23 10:04 miancule

Yes, this is exactly what it is for. I'll see if we can get some clarification on the map, but its generally the types generated from Nuke, similar to the feature in redshift https://help.maxon.net/r3d/cinema/en-us/Content/html/Lens+Distortion.html

bsavery avatar Apr 25 '23 17:04 bsavery