c - OpenGL - glusphere not smooth -
i have been experimenting arguments glusphere(). problem sphere not smooth, , looks more blot. right now, call looks this:
glpushmatrix(); gltranslatef(0.1, 0.1, 0.0); gluquadricobj *quadric; quadric = glunewquadric(); glusphere(quadric, .02 , 32 , 16); glpopmatrix();
any suggestions looks not right code snippet appreciated. understanding higher value of 3rd , 4th argument, slices , stacks, respectively, smoother edges of sphere be.
edit:
changing translation coordinates (0.08, 0.08, 0) results in smoother sphere.
Comments
Post a Comment