Hi, I have a problem applying a texture to a sphere.
In the setup phase I do this:
And when I draw the I use this codeCode :earth = gluNewQuadric(); gluQuadricTexture( earth, GL_TRUE); earthTexture = LoadBitmap("data/EarthTexture.bmp");
Code :glEnable ( GL_TEXTURE_2D ); glBindTexture ( GL_TEXTURE_2D, earthTexture); gluSphere( earth, 0.9, 36, 72); glDisable ( GL_TEXTURE_2D );
But something goes wrong and I obtain this http://yfrog.com/14screenshot20091119at105j
What am I doing wrong?
If I try to move the sphere the result is getting even worst.