Re: rewrite glRotate?



Gernot Frisch wrote:

My brain is too small to understand "why" the reverse order?

left sided matrix multiplication vs. right sided matrix
multiplication.

The idea of the reverse order of operations in OpenGL is, that
one can create transformation heirachies. E.g. first position
the model of the android in space, then rotate it's waist, the
shoulder, elbow and so on. But if you really had to position an
android model you'd do it in the other way, than one thinks of
it. And to accomodate for this habit, OpenGL performs right
sides multiplication, i.e. the transformation performed is on
the right side of the matrix multiplication. The effect is, that
the OOP is exactly other way round.

In the Red Book there's a own chapter about it (somewhere towards
the end).

Wolfgang Draxinger
--
E-Mail address works, Jabber: hexarith@xxxxxxxxxx, ICQ: 134682867

.