PDA

View Full Version : problem with gluDisk



tim_ganly
02-06-2002, 08:50 AM
Hi everyone. Try this bit of code and tell me if you can figure out how to get rid of that little radial "spoke" in the disk. Its really annoying me!!
Thanks, Tim

GLUquadric* cap = gluNewQuadric();

glBegin(GL_LINE_LOOP);
gluDisk( cap,
0.0,
10.0,
10,
1
);
glEnd();

endo
02-07-2002, 03:30 AM
It must be the line loop part of the code, I had the same trouble doing a circle without using quadrics. Try changing it to GL_LINE_STRIP or try not using a quadric, and plot it with polar coordinates.