PDA

View Full Version : 3d shading



answer
03-10-2004, 03:58 PM
How can I do 3d shading? When I draw some verteces and start rotating the image there is now shading its all one color.

infinitecmdz
03-10-2004, 05:05 PM
hi,
the answer to your problem lies in NORMALS. you see, each vertices of the object have something known as normals that is perpendicular to it. this describes the lighting calculations as the light lits each vertices. lighting is a pretty complex subject. so you have face normals and vertex normals. the face normals shows the object faceted and vertex normals renders the object in a smooth kind of way(this is because, you average the normals of the surround normals sharing the same vertices).

you can find a lot of these details in the red book. or just do simple google search.