Advertisement

Smooth shading for custom GL objects?

Started by September 18, 2001 01:34 PM
1 comment, last by dark_creature 23 years, 5 months ago
How do I make an object seem smooth? E.g. gluSphere makes the sphere look smooth, even when using low detail. If I attempt to make my own sphere, torus or anything similar, it always flat shaded, I take it I need to enable something? Any Ideas or references. Also I will want to use it for custom lighting, i.e. using normals and dot product, will it work? Thanks for any help; hopefully it’ll let me create some cool effects that will make for some good tutorials.
I think I know what effect you are talking about. That sort of smooth shading occurs when instead of passing a normal to OpenGL for each polygon, you pass it an normal per vertex. Look here for more info. http://nate.scuzzy.net/docs/normals/
Advertisement
Cool, didn''t think of that! The answer seems so obvious now! Thank you.

This topic is closed to new replies.

Advertisement