PDA

View Full Version : draw flat or smooth frame



banzai889
10-02-2003, 06:32 PM
drawing flat and smooth frame requires calculation of the normal of the surfaces and need alot of effort to do in coding part
am i right?

is there a function in opengl i can use to skip all those horible calculation for normal in order to draw flat or smooth polygon?

mikael_aronsson
10-02-2003, 09:34 PM
Hi !

Nope, but it's not that difficult to do, and if you don't want to do it yourself, then download the source code for the Graphics Gems books, one of them (sorry, don't rember wich one) has complete source code that calculates all the normals for a mesh to create a nice smooth object.

Mikael

banzai889
10-02-2003, 11:01 PM
hi
do u mind to tell me where i can obtain these information please?
thanks