Hi,
got a problem with textures. On a tnt2 I get the 24-bit texture as I specified it. On a tnt with the same code I get the texture in 16 colors. But the display has 24-bit (I render a cylinder in front of the background-texture and it has smooth transitions).
Here is the source I use to initialize the texture:
glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT); glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); // low: GL_NEAREST, high: GL_LINEAR. glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); // low: GL_NEAREST, high: GL_LINEAR. glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); glTexImage2D(GL_TEXTURE_2D, 0, 4, imgWidth, imgHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, imgRaster); glEnable(GL_TEXTURE_2D);
Any suggestions?
[This message has been edited by Kilam Malik (edited 11-11-2000).]