Original Post
guys, i have problems doin on the texture mapping on sphere, it just cant map it out.. why? this is just a normal sample (every thing is set, like the image is load): glDisable(GL_LIGHTING); mat_specular[0] = 2.55; mat_specular[1] = 0.0; mat_specular[2] = 2.55; mat_specular[3] = 1.0; glMaterialfv(GL_FRONT, GL_SPECULAR,mat_specular); GLfloat light_position[]={50.0, 200.0,50.0,1.0}; glLightfv(GL_LIGHT0, GL_POSITION, light_position); glPushMatrix(); glTranslatef(a, b, 0.0f); glEnable(GL_TEXTURE_2D); glutSolidSphere(5.0,50.0,10.0); glEnd(); glPopMatrix(); glDisable(GL_TEXTURE_2D); glEnable(GL_LIGHTING); why this code cant load the image? it just turned black...