Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation needed for rprCameraSetUVDistortion() #63

Open
miancule opened this issue Apr 25, 2023 · 1 comment
Open

Documentation needed for rprCameraSetUVDistortion() #63

miancule opened this issue Apr 25, 2023 · 1 comment

Comments

@miancule
Copy link

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
Copy link

bsavery commented Apr 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants