View Full Version : Texturing the inside of a glutSolidSphere

05-26-2000, 10:37 AM
Does anyone know how?

05-26-2000, 03:39 PM
I could be mistaken, but as far as I know you can't. I don't think glut issues TexCoords for it's primatives.

But, you can use the glu quadric to make a sphere with Texture:

struct GLUquadric* quad;
quad = gluNewQuadric();
gluQuadricTexture( quad, True ); //enable TexCoord generation
glBindTexture( GL_TEXTURE_2D, texName[0] );
gluSphere( quad, 5, 10, 10 );

I seem to recall pictures of the Teapot prim. with a texture map on it. So there is probablly a way to get glut to add TexCoords, but I don't use glut so I'm not sure.


05-26-2000, 06:09 PM