PDA

View Full Version : how to set normals?



jyoung77
03-20-2003, 04:19 PM
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

nexusone
03-20-2003, 04:21 PM
There is a good example of cube's with normals on

nehe.gamedev.com


Originally posted by jyoung77:
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