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