Jim Helman (jimh++at++surreal)
Tue, 07 Nov 95 14:56:31 -0800
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
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:01 PDT