   strange problom with texture
  hello alli am trying to put a texture on a quad and for some reason it shows the quad in black colors and it doesnt show the texture at all.the code i use is:glEnable(GL_TEXTURE_2D);glBindTexture(GL_TEXTURE_2D, texture[0]);glBegin(GL_QUADS);glTexCoord2f(1.0,1.0); glVertex2f(1,1);glTexCoord2f(1.0,0.0);glVertex2f(1.0,-1.0);glTexCoord2f(0.0,0.0);glVertex2f(-1.0,-1.0);glTexCoord2f(0.0,1.0);glVertex2f(-1.0,1);glEnd();if anyone has any idea why this isnt working plz tell me.thanks in advance   
  Hmm, the code that you show appears to be correct, if the texture ID == 0 aka texture upload failed, then the texture (At least on my gfx devices) would appear white.. therefore, try glColor4f(1,1,1,1) or summin'Or perhaps, you've enabled lighting with glEnable(GL_LIGHTING)? try disabling it with glDisable(GL_LIGHTING) if so, else, perhaps the quad isn't actually being rendered due to backface culling order, try adding before your code...glDisable(GL_CULL_FACE); to see if that fixes it.What about you near and far clipping planes for the projection matrix?Perhaps your quad is too close "to the screen"... try moving the quad away from the near clip plane  a little with glTranslatef(0,0 - 10); or summin.Other than that, I'm not sure. If you're able to, upload full source and I'll look into the problem for you.PS.. Please excuse me if this reply is lame, I've had "a few" beers :)Dave.EDIT:What about if you glDisable(GL_TEXTURE_2D); before the above code, does the quad appear then?[Edited by - TerraX on January 6, 2006 4:04:16 AM];  i have no idea what i have done but i think its about the alpha channel and now it works!thanks anyways :)   