Let's say I have a blue 3D box (where the top side is red colored).
- Now I call glScalef(1, 10, 1).
- Then I call glRotatef(90, 0, 1, 0).
- Then i render the cube.
What i expected is to see the the red side facing and stretched towards the screen (along the Y axis of the model).
But what im seeing is this: The red side is facing the screen (as expected). But the stretch is occurring on the Y axis of the view space (not the model).
I do know that if I set the scale along the Z axis, then i'll get the right result. But my confusion is that i thought scaling up on the Y axis, then rotating the box, would give me the right result.
What am i missing?