70 CHAPTER 3: Building a 3D World^
Figure 3-8. Translation first, rotation second
Here is what should be causing the sudden outbreak of furrowed brows across the land:
glRotatef(spinY, 0.0, 1.0, 0.0);
glRotatef(spinX, 1.0, 0.0, 0.0);
glTranslatef(0.0, (GLfloat)(sinf(transY)/2.0), z);
Figure 3-9. Rotation first or translation first?