GPUOpen-LibrariesAndSDKs / RadeonProRenderSDK

AMD Radeon™ ProRender is a powerful physically-based path traced rendering engine that enables creative professionals to produce stunningly photorealistic images.
https://gpuopen.com/radeon-prorender-suite/
Other
216 stars 45 forks source link

Documentation needed for rprCameraSetUVDistortion() #63

Open miancule opened 1 year ago

miancule commented 1 year ago

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!

bsavery commented 1 year ago

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