home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sgiblab!sgigate!sgi!fido!cashew.asd.sgi.com!kurt
- From: kurt@cashew.asd.sgi.com (Kurt Akeley)
- Newsgroups: comp.sys.sgi.graphics
- Subject: Re: Perspective
- Date: 30 Dec 1992 18:19:11 GMT
- Organization: Silicon Graphics, Inc.
- Lines: 29
- Distribution: world
- Message-ID: <1hsp6vINNql6@fido.asd.sgi.com>
- References: <C01sFL.3q1@world.std.com>
- NNTP-Posting-Host: cashew.asd.sgi.com
-
- --
-
- I believe this is how the perspective matrix is computed:
-
- cot(fov/2)
- ---------- 0 0 0
- aspect
-
-
- 0 cot(fov/2) 0 0
-
-
- near+far
- 0 0 -------- -1
- near-far
-
-
- 2.far.near
- 0 0 ---------- 0
- near-far
-
-
- Clipping is then done to:
-
- -w < x < w
- -w < y < w
- -w < z < w
-
- -- Kurt Akeley kurt@sgi.com (415) 390-3612 M/S 7U-550
-