home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!rutgers!sgigate!odin!fido!cashew.asd.sgi.com!kurt
- From: kurt@cashew.asd.sgi.com (Kurt Akeley)
- Newsgroups: comp.sys.sgi
- Subject: Re: polarview
- Message-ID: <1hva8vINNirc@fido.asd.sgi.com>
- Date: 31 Dec 92 17:22:39 GMT
- References: <7719@dove.nist.gov>
- Organization: Silicon Graphics, Inc.
- Lines: 17
- NNTP-Posting-Host: cashew.asd.sgi.com
-
- --
-
- The mmode(MVIEWING) call put the GL into multi-matrix mode, meaning
- that transformations are done by two matrixes: first the model-view
- matrix, then the projection matrix. When mmode() was called, both
- these matrixes were initialized to identity. The first time you
- called polarview(), the model-view matrix was premultiplied by a
- computed viewing matrix, and since the model-view matrix was identity,
- the result was the equal to the computed matrix. Subsequent calls
- to polarview() will not have the same effect, however, because the
- model-view matrix is no longer identity. Thus my suggested fix -
- call loadmatrix(identity) before you call polarview(). Declare
- identity as follows:
-
- Matrix identity = {1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1};
-
- -- Kurt Akeley kurt@sgi.com (415) 390-3612 M/S 7U-550
-