It appears that the vertex winding for glutSolidSphere
is opposite to the convention used by GLUT, and
inconsistant with other shapes in FreeGLUT such as boxes.
This is especially problematic with back-face culling
To correct this problem in glutWireSphere()
and glutSolidSphere(), flip the sign on "delta phi"
dphi = -2 * M_PI / slices;
dphi = 2 * M_PI / slices;
Log in to post a comment.