PDA

View Full Version : glNormal3f



iux
02-09-2003, 01:27 AM
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

iux
02-09-2003, 01:42 AM
i have over 1000 faces , must i add glNormal3f for every face?

kehziah
02-09-2003, 02:40 AM
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.

iux
02-09-2003, 03:05 AM
i have found GL_AUTO_NORMAL in internet,can i use it?

Mazy
02-09-2003, 07:53 AM
No.. thats for high order surfaces only ( spline surfaces)

HalcyonBlaze
02-09-2003, 09:21 AM
To keep you sanity, you probably want to calculate the normals instead of specifying them by had http://www.opengl.org/discussion_boards/ubb/biggrin.gif.

- Halcyon