View Full Version : Texturing GL primitives

09-02-2002, 07:12 AM
How do I texture basic GL spheres?

09-02-2002, 09:17 AM
Depends on how build it:
You can with gluSphere or any glu primitives, but not with glutSolidSphere or other glut primitives execpt the teapot.

Originally posted by Gobbo:
How do I texture basic GL spheres?

09-03-2002, 05:34 AM
if you are going to use quadric then it is
just like any other 3d object but use these lines to initiate the quadric first

quadric =gluNewQuadric();

//here you set the texture drawing style
gluQuadricNormals(quadric, GLU_SMOOTH);

gluQuadricTexture(quadric, GL_TRUE);