We’re stuck … and have no immediate access to an ATI card !
The problem that we’ve got relates to a recently reported fault where a texture seems to end up being incorrectly rendered on some ATI based systems. From the screenshots that we’ve received it looks as though at the top of the strip that the texture has been rotated by 90 whereas at the bottom of the strip, the texture has been rotated by -90. (The texture in question is 32 x 8 … if that’s relevant).
The particular code is question is listed below and similar code is used in the rest of our application without this problem … any ideas ?
Many thanks,
Andrew
cTexCoords : array[0…3] of TGLArrayi2 = ((0, 0), (0, 1), (1, 0), (1, 1));
cGutter : array[0…3] of TGLArrayf3 = ((0.000, 0, -3.45), (0.000, 0, 3.45), (0.450, 0, -3.45), (0.450, 0, 3.45));
glNewList(fPageRightList+1, GL_COMPILE);
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, @cMaterialSpecularNone );
glBindTexture(GL_TEXTURE_2D, GLTextures[cBookPageGutter]);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
glBegin(GL_TRIANGLE_STRIP);
glTexCoord2iv(@cTexCoords[0]); glVertex3fv(@cGutter[0]);
glTexCoord2iv(@cTexCoords[1]); glVertex3fv(@cGutter[1]);
glTexCoord2iv(@cTexCoords[2]); glVertex3fv(@cGutter[2]);
glTexCoord2iv(@cTexCoords[3]); glVertex3fv(@cGutter[3]);
glEnd;
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, @cMaterialSpecularDefault);
glEndList;