home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / graphics / 14166 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.2 KB

  1. Xref: sparky comp.graphics:14166 comp.windows.x.pex:696 comp.graphics.opengl:274
  2. Newsgroups: comp.graphics,comp.windows.x.pex,comp.graphics.opengl
  3. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!leland.Stanford.EDU!ledwards
  4. From: ledwards@leland.Stanford.EDU (Laurence James Edwards)
  5. Subject: Re: Row major or column major matrices?
  6. Message-ID: <1993Jan25.013450.334@leland.Stanford.EDU>
  7. Sender: news@leland.Stanford.EDU (Mr News)
  8. Organization: DSG, Stanford University, CA 94305, USA
  9. References:  <1993Jan22.124249.3817@eye.com>
  10. Date: Mon, 25 Jan 93 01:34:50 GMT
  11. Lines: 30
  12.  
  13. In article <1993Jan22.124249.3817@eye.com>, erich@eye.com (Eric Haines) writes:
  14. |> I feel vaguely like I'm in a twilight zone episode.  You know, like the ones
  15. |> where some guy wakes up and finds that all the lettering is backwards and
  16. |> everyone is left-handed.
  17. |> 
  18. |> Someone was telling me that OpenGL allows only post-concatenation of matrices
  19. |> [...]
  20. |> Me, I learned on my pappy's knee (well, actually, through Newman & Sproull) to
  21. |> use row major matrices.  Up until today using column major matrices never
  22. |> crossed my mind.  Anywell, ideas like "we only post-concatenate column major
  23. |> matrices" translates into "we only pre-concatenate row major matrices".
  24. |> Lovely, a new way to confuse computer graphics people (as if left vs.
  25. |> right-handed coordinate systems weren't bad enough).  This is not a slam of
  26. |> OpenGL - Phigs uses column major matrices, too!
  27. |> [...]
  28.  
  29. It's even more surprising since the current version of GL normally
  30. pre-concatenates. I can imagine some hard to find bugs when people port old GL
  31. code in which they generate their own matrices from scratch. I'm not too upset
  32. though, cause column vectors and post-concatenation is what I learned as an
  33. engineer, and so it seems more natural to me. Note, that pre-concatenation
  34. with column vectors or post-concatenation with row vectors is useful. In this
  35. one instance I prefer PHIGS, which has a direct mechanism for doing both pre- &
  36. post-concatenation of matrices ... you can post-concatenate in GL but only
  37. indirectly and inefficiently.
  38.  
  39. According to the GL manual, GL uses row vectors and pre-multiplication for
  40. purely historical reasons related to the efficiency of early hardware.
  41.  
  42. Larry Edwards
  43.