Hi,
I have been looking all over the web for a way to use GL_Smooth in my project and I have found out that it has something to do with vertex normals,
but i wasnt able to make it work for me, can someone in here help me or direct me please to some guide that will tell me how to use them?
My drawing function looks like this:
glClear (GL_COLOR_BUFFER_BIT);
glPushMatrix();
glLoadIdentity();
x = radius * cos(rotX) * cos(rotY);
y = radius * sin(rotX);
z = -radius * cos(rotX)* sin(rotY);
gluLookAt(x,y,z,0,0,0,0,1,0);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glShadeModel( GL_SMOOTH );
glutSolidSphere(.5, 20, 20);
glPopMatrix();
glutSwapBuffers();
when everything else that i need to do works good(I needed to create a 3d “Flythrough mode” using the arrow keys which worked, the the only problem i have now is making it use the GL_SMOOTH Shading feature)
Thanks a lot (=