Smooth shading for custom GL objects?
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/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement