1
$\begingroup$

Can someone from the dev team or other can share the fish-eye formula between single 3d position in world space or camera space into final image coordinates. (image space). as used in cycles.

thanks !

$\endgroup$
1
  • 2
    $\begingroup$ There is no one from the Blender Foundation on this Q&A site. Suggest you ask on developer.blender.org $\endgroup$
    – John Eason
    Commented Dec 12, 2022 at 15:18

1 Answer 1

1
$\begingroup$

I found the answer to your question in the functions direction_to_fisheye and fisheye_to_direction in the Blender source code: https://github.com/blender/blender/blob/main/intern/cycles/kernel/camera/projection.h. Even though the code talks about directions, I was able to use a version of these formulas to map 3D points from camera space to final image coordinates.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .