PDA

View Full Version : Texturing GL primitives



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

nexusone
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?

Cyclon
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);