ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/lib/fisheye.cal
Revision: 1.2
Committed: Tue Mar 18 17:30:17 2003 UTC (21 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Decided to move ray/lib directory into non-CVS distribution

File Contents

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