glutSolidCube(1.0) draws a cube with side-length 1.0 which is centered at the world origin.
so the vertices are:
- (-0.5, -0.5, -0.5)
- (-0.5, +0.5, -0.5)
- (-0.5, +0.5, +0.5)
- (-0.5, -0.5, +0.5)
- (+0.5, -0.5, -0.5)
- (+0.5, +0.5, -0.5)
- (+0.5, +0.5, +0.5)
- (+0.5, -0.5, +0.5)
now gluLookAt(0, 0, 16, 0, 0, 0, 0, 1, 0) generates a modeView matrix that transforms these coordinates into the camera coordinates.
Since the camera position is just translated by (0,0,16) wrt the default camera position (0,0,0), this modelView matrix basically translates each vertex by (0,0,-16).
Clear?