home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.graphics:14201 comp.windows.x.pex:699 comp.graphics.opengl:276
- 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: <1993Jan26.015341.21414@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: DSG, Stanford University, CA 94305, USA
- References: <1993Jan22.124249.3817@eye.com> <1993Jan25.013450.334@leland.Stanford.EDU>
- Date: Tue, 26 Jan 93 01:53:41 GMT
- Lines: 24
-
- In article <1993Jan25.013450.334@leland.Stanford.EDU>, ledwards@leland.Stanford.EDU (Laurence James Edwards) writes:
- |> 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
- |> [...]
- |>
- |> 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.
-
- Knowledgeable sources inside SGI inform me that the OpenGL spec's are just
- written using column vectors and post-concatenation because of the notational
- preferences of the author(s) ... the actual hardware will still be doing
- pre-concatenations. Actually, this is clear from what Eric said. As Eric
- indicated, in the OpenGL spec they show matrices stored in column major order,
- whereas in reality C stores matrices in row major order, so effectively what
- they've done in the diagrams is transpose the matrices ... hmmm I can think of
- less confusing ways to write a spec.
-
- Larry Edwards
-
-