glNormal3f

hi,
my object is always the ONE KIND OF color with the lights.
someone tell me i should use glNormal3f to make it cooler.

then how can i set the attribute?
is there any example for me?

thx in advanced

i have over 1000 faces , must i add glNormal3f for every face?

If you want flat shading, yes you need 1 glNormal call for each face.
If you want Gouraud shading, you need 1 glNormal call for each vertex.

i have found GL_AUTO_NORMAL in internet,can i use it?

No… thats for high order surfaces only ( spline surfaces)

To keep you sanity, you probably want to calculate the normals instead of specifying them by had .

  • Halcyon