PDA

View Full Version : Conflict between Polygon and Quadric drawings?



Bob Hoeft
03-13-2000, 01:24 PM
Does OpenGL prohibit the use of PolygonMode and Quadric shapes at the same time?

I had several shapes working in my scene, which I derived from triangle strips. I then went to add a quadric cylinder (using gluCylinder, after gluNewQuadric). To my surprise, my PC would halt at the first OpenGL call I made after gluCylinder.

After much trial and error, I found that it no longer locked up if I commented out the earlier polygons. The glPolygonMode(GL_BACK, GL_LINE) line, in particular seemed to be the source of my troubles.

Has anyone else seen this? Is there a way that polygons and quadrics can "get along" in the same scene?

Thanks,
Bob

Gorg
03-13-2000, 04:05 PM
try changing your polygonMode to GL_FRONT