home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / graphics / 71 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  794 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sgiblab!sgigate!sgi!fido!cashew.asd.sgi.com!kurt
  2. From: kurt@cashew.asd.sgi.com (Kurt Akeley)
  3. Newsgroups: comp.sys.sgi.graphics
  4. Subject: Re: Perspective
  5. Date: 30 Dec 1992 18:19:11 GMT
  6. Organization: Silicon Graphics, Inc.
  7. Lines: 29
  8. Distribution: world
  9. Message-ID: <1hsp6vINNql6@fido.asd.sgi.com>
  10. References: <C01sFL.3q1@world.std.com>
  11. NNTP-Posting-Host: cashew.asd.sgi.com
  12.  
  13. -- 
  14.  
  15. I believe this is how the perspective matrix is computed:
  16.  
  17.     cot(fov/2)
  18.     ----------    0    0    0
  19.      aspect
  20.  
  21.  
  22.         0        cot(fov/2)    0    0
  23.  
  24.  
  25.                 near+far
  26.         0        0   --------    -1
  27.                 near-far
  28.  
  29.  
  30.                 2.far.near
  31.         0        0   ----------    0
  32.                  near-far
  33.  
  34.  
  35. Clipping is then done to:
  36.  
  37.     -w < x < w
  38.     -w < y < w
  39.     -w < z < w
  40.  
  41. -- Kurt Akeley        kurt@sgi.com  (415) 390-3612  M/S 7U-550
  42.