how to set normals?

Hi,

Someone told me that I have to setup normals for the faces (or vertices) of a cubic object or otherwise all the cube’s faces will have the same lighting effect (i.e. the shading of faces due to lighting will be the same). My question is how to set the faces’ normals. Sometimes a face can even be round, e.g in a sphere. Please help. Thanks.

Tony

There is a good example of cube’s with normals on

nehe.gamedev.com

Originally posted by jyoung77:
[b]Hi,

Someone told me that I have to setup normals for the faces (or vertices) of a cubic object or otherwise all the cube’s faces will have the same lighting effect (i.e. the shading of faces due to lighting will be the same). My question is how to set the faces’ normals. Sometimes a face can even be round, e.g in a sphere. Please help. Thanks.

Tony[/b]