Luminance mapping - Radiance Workshop 2003
Santiago Torres – The University of Tokyo
4 / 14
Luminance mapping
Fisheye.cal (cont.)
{
Calculate coordinates for a 180 degree fisheye lens.
Assume view direction is
(0,1,0), view up (0,0,1), (1,0,0) right.
4/30/90
}
fish_u = .5 + Dx/fish_Rxz * fish_Ry;
fish_v = .5 + Dz/fish_Rxz * fish_Ry;
fish_Rxz = sqrt(Dx*Dx + Dz*Dz);
fish_Ry = acos(Dy) / PI;
sqrt(Dx*Dx + Dz*Dz)
(0.5, 0.5)
fish_u
fish_v
R = PI
acos(Dy) / PI
void colorpict right
7 red green blue IMG1.hdr fisheye.cal fish_u fish_v
0
0
right glow light_r
0
0
4 1 1 1 0
light_r source env_r
0
0
4 0 1 0 180
by
AMcneil
– last modified
Feb 29, 2016 12:26 PM