skorman00
05-29-2003, 03:36 PM
I tried loading a texture, which loaded fine using GenTextures, BindTexture, and TexImage2D. All that goes by without a problem, and the texture shows up how I want it too. But the color of the entire window is messed up.
I have 2 shapes, a 5 sided pyramid with colored corners, and a cube with textured sides. The pyramid seems to be colored correctly, but it's dim as if I turned down the contrast on my screen. The textured cube is not showing any red or blue, only green.
I tried to figure out my problem on my own, and the only thing I was able to find was that by taking out these two lines:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_NEAREST);(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER ,GL_NEAREST);
the problem goes away. However, the cube becomes only green with no texture.
Any suggestions?
I have 2 shapes, a 5 sided pyramid with colored corners, and a cube with textured sides. The pyramid seems to be colored correctly, but it's dim as if I turned down the contrast on my screen. The textured cube is not showing any red or blue, only green.
I tried to figure out my problem on my own, and the only thing I was able to find was that by taking out these two lines:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_NEAREST);(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER ,GL_NEAREST);
the problem goes away. However, the cube becomes only green with no texture.
Any suggestions?