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

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