I am using OpenGL with C++ (but without shaders and GLSL) and drawing spheres (the pool ball) and cylinders (the cue stick) using the glu library functions to draw them. I am using glBindTexture()
to bind the texture and loading the texture using the SOIL library.
As you can see from the screenshots there are jagged edges to both the cylinder and the sphere. Calling the following glHint()
How do I get rid of the jagged edges. The gluSphere()
has 25 stacks and slices, and the gluCylinder()
has 100 stacks and slices. Increasing the stacks and slices does not improve the image quality.
Using freeglut for the rest of the drawing
glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST); //Smooth polygons
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST); //Best perspective corrections
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST); //Smooth points
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); //Smooth lines