PDA

View Full Version : a cone in opengl



Taphap
09-27-2010, 08:36 AM
If we think of a cone to be made up of triangles and since a cone has a single point on one of the tappered side,we do not usually define a normal there ,but how can we make opengl to render the triangles which include the vertex ,so that its shading looks fine

NeXEkho
09-27-2010, 08:42 AM
Generally, you wouldn't share the normal for the top of the cone because it'd look wrong no matter how you oriented it; instead, you'd have a vertex for every triangle that reaches the top so the normal of the point is the same as the rest of the side.

Taphap
09-27-2010, 01:07 PM
thank :) that was helpful :)