I have an example of texture mapping a glusphere on my website called glBall, I use a TGA file as my texture. But the idea is the same, just the routine for loading the image file is diffrent.
Originally posted by UnderWear:
[b]I made a sphere using this code below:
"
GLUquadricObj *qobj = gluNewQuadric();
gluQuadricDrawStyle(qobj, GLU_FILL);
glColor3f(0,0,1);
gluSphere(qobj, 1,40,40); "
Does anyone know the simplest way to map a bmp file to the sphere? I’m completely lost here.
I’ve been doing searches and it seems that gluQuadricTexture will work the best, but I don’t know what to do with it, nor what else I need.
Help?[/b]
[This message has been edited by nexusone (edited 12-18-2002).]