ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/renders/fisheye.cal
Revision: 1.1
Committed: Tue Nov 20 01:49:16 2018 UTC (6 years, 5 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R3, HEAD
Log Message:
Made non-standard auxiliary files local

File Contents

# Content
1 { RCSid $Id$ }
2 {
3 Calculate coordinates for a 180 degree fisheye lens.
4 Assume view direction is (0,1,0), view up (0,0,1), (1,0,0) right.
5
6 4/30/90
7 }
8
9 fish_u = .5 + Dx/fish_Rxz * fish_Ry;
10 fish_v = .5 + Dz/fish_Rxz * fish_Ry;
11
12 fish_Rxz = sqrt(Dx*Dx + Dz*Dz);
13 fish_Ry = acos(Dy) / PI;