glut polygon winding strangeness

Member
Posts: 86
Joined: 2008.04
Post: #1
Are there any known issues with the winding of the standard glutsolid functions?

For example, if I render
glutSolidSphere (1.0, 20, 20);
glPushMatrix();
glTranslatef(5,0,0);
glutSolidCone(2, 2, 10, 10);
glPopMatrix();
glPushMatrix();
glTranslatef(-2,0,0);
glutSolidTeapot(1);
glPopMatrix();

with
glFrontFace(GL_CCW);
glEnable(GL_CULL_FACE);
glCullFace(GL_FRONT);
then the teapot renders but not the sphere or cone.

likewise,
glFrontFace(GL_CCW);
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
results in the sphere and cone, but not the teapot...

are they known to be inconsistent in the winding?
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #2
Yes, the teapot is wound inside out with respect to the others. It's always been that way, and is documented in the glutSolidTeapot manpage.
Quote this message in a reply
Member
Posts: 86
Joined: 2008.04
Post: #3
Thanks arekkusu!

Is there anything related to OpenGL that you don't know? ;-)
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Polygon budgets Kerome 1 2,930 Mar 7, 2010 04:55 AM
Last Post: mikey
  Getting the Normal for a polygon. Jaden 3 5,863 May 1, 2009 01:47 PM
Last Post: Nosredna
  Is there anything like polygon offset for GL_LINES? TomorrowPlusX 2 3,709 Jan 24, 2007 02:57 PM
Last Post: TomorrowPlusX
  2d Polygon Intersection bizimCity 6 6,845 Aug 31, 2006 05:29 PM
Last Post: reubert
  Adding Height Segments to a polygon..!! leodeus 13 6,168 Oct 24, 2005 08:24 AM
Last Post: leodeus