Someone said that if i make the stack parameter to '2' the two ends are capped. i tried it (as typed in the code box) still no caps. Is there a way to make gluCylinder close two ends without declaring two other gluDisc?

06-02-2008

VirtualAce

No idea. However capping it is as simple as drawing a triangle fan with the same number of segments as the tube. Draw the triangle fan at the both ends of the tube. The origin for the triangle fan should be on the centerline of the tube.