Re: pfMatrix question

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Tue, 07 Nov 95 14:56:31 -0800


If I had a nickel for every time someone has been confused by
this (including engineers at SGI), I could retire in luxury......
well almost.

The OpenGL spec and reference book simply use a different
notation, i.e. the one more commonly used in linear algebra
courses. Basically OpenGL docs use post-multiplication by
column vectors rather than pre-multiplication by row vectors.
Or phrased another way OpenGL docs specify matrices in column-
major order whereas C stores them in row major order.

So if you see:

                Vout = PROJ * MODELVIEW * Vin

you should still code exactly as in IRIS GL:

                Vout' = Vin' * MODELVIEW' * PROJ'

where the primes indicate transposition of the vectors
and matrices.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/933-1151


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:01 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.