texturing and lighting

i´m having a small openGL scene with a few cubes floating around and a light source. now if i try to apply a texture to one of the cubes, the whole scene gets a lot darker although the light is still on.

i initialize the texture a sfollows, shouldn´t be a problem!?

glGenTextures(1, &texture[0]);
glBindTexture(GL_TEXTURE_2D, texture[0]);
gluBuild2DMipmaps(GL_TEXTURE_2D, 3, text1->w, text1->h, GL_RGB, GL_UNSIGNED_BYTE, text1->pixels);

If you use GL_MODULATE (which is the default), the texture will be muliplied with the polygon color, and if you use lighting, this is what you want. Now, if your texture is dark, then when multiplying, the result will also be dark, even though lighting is on. Try increase the brightness of your texture, it should be as bright as possible.

[This message has been edited by Bob (edited 02-19-2001).]