Translate, rotate

If I was to start with an identity matrix, after the following transformation sequence (which is pseudo code), where would the cube be drawn?

translate(0, 0, 10)
rotate(90, 1, 0, 0)
translate(0, 0, 10)
draw cube

In my opinion, the cube would be drawn, 10 units AWAY along Z axis and 10 units DOWN along Y axis? Would I be right? Someone was telling me that it is actually drawn 10units AWAY along Z axis and 10 units UP along Y axis. Can someone please confirm?

James.

The origin will be at:

0, -10, 10

So you were right :slight_smile:

HTH

The trick to understanding OpenGL transforms
is by visualising it. Get the interactive demo
by Nate Robbins from http://www.xmission.com/~nate/tutors.html.