Please help with my vertex normals. please.

Ok here is my box with one vertex per side (flat shading)

//top
glNormal3f(0.0, 1.0, 0.0);
glVertex3f(1.0, 0.25, -1.0);
glVertex3f(-1.0, 0.25, -1.0);
glVertex3f(-1.0, 0.25, 1.0);
glVertex3f(1.0, 0.25, 1.0);
//bottom
glNormal3f(0.0, -1.0, 0.0);
glVertex3f(1.0, -0.25, 1.0);
glVertex3f(-1.0, -0.25, 1.0);
glVertex3f(-1.0, -0.25, -1.0);
glVertex3f(1.0, -0.25, -1.0);
//front
glNormal3f(0.0, 0.0, 1.0);
glVertex3f(1.0, 0.25, 1.0);
glVertex3f(-1.0, 0.25, 1.0);
glVertex3f(-1.0, -0.25, 1.0);
glVertex3f(1.0, -0.25, 1.0);
//back
glNormal3f(0.0, 0.0, -1.0);
glVertex3f(1.0, -0.25, -1.0);
glVertex3f(-1.0, -0.25, -1.0);
glVertex3f(-1.0, 0.25, -1.0);
glVertex3f(1.0, 0.25, -1.0);
//left
glNormal3f(-1.0, 0.0, 0.0);
glVertex3f(-1.0, 0.25, 1.0);
glVertex3f(-1.0, 0.25, -1.0);
glVertex3f(-1.0, -0.25, -1.0);
glVertex3f(-1.0, -0.25, 1.0);
//right
glNormal3f(1.0, 0.0, 0.0);
glVertex3f(1.0, 0.10, -1.0);
glVertex3f(1.0, -0.25, 1.0);
glVertex3f(1.0, -0.25, 1.0);
glVertex3f(1.0, 0.25, -1.0);

Ive read the theory countless times but how would I declare the VERTEX normals for this cube. I dont want the theory please.

go here:
The Red Book
READ Chapter 5 and Appendix E.

Good Luck

[This message has been edited by Warrior (edited 04-20-2001).]

What are you talking about, didn’t the code you listed already assign the VERTEX normals?

What are you talking about, didn’t the code you listed already assign the VERTEX normals?

No, he is assigning surface normals.

For a cube you will want surface normals unless you are trying to disguise the cube as a cylinder or such like. Vertex normals ona cube would look wired.