   texture problem
  im having a problem with texturing.let me explain my situation, and maybe someone can figure out a reason this is happening.here is a before (first picture) and after (second picture), then ill explain below:BEFORE:AFTER:the first picture shows a triangle correctly textured.in the second picture, the triangle from the first picture is on the left and a newly created triangle is on the right. Each triangle has its own set of texture coordinates, which DO show up correctly as longs as they are the only triangle on the screen. When more than one triangle is in existance, the textures for all the triangles gets messed up.I did work to figure out why, my first guess being that there was some extra call to glTexCoord2f being made, but found that it is called the correct number of times each frame (3 times for each triangle in the scene).Ive been stuck on this for hours now and my brain is bleeding....So my question is: what could be causing this to happen?[edited by - Mulligan on February 11, 2004 12:39:51 AM]
  i assume you''re not doing anything to the texture matrix? ;  nope....err...if i was what would that include?i call the following texture related functions each frame:glBindTextureglTexCoord2fglEnable( GL_TEXTURE_2D )glDisable( GL_TEXTURE_2D ) ;  Post your rendering code if you can. ;  ill try, it spans several files, so i nay just post the whole 20,000 line project for download.... ;  Seems like the texture matrix.Do you have this anywere in your code:glMatrixMode(GL_TEXTURE);;  i dont think so, whats that do? ;  that means that any transformations u apply are applied to texture matrix, modifing texture coordinates, not geometric or view stuff.i saw that in your editor u display the vertex coordinates. try to display texture coordinates to debug the problem.   Mihai ;  im actually displaying the texture coordinates there, they are correcta and ive verified that the output is correct.however, glMatrixMode(GL_TEXTURE), how do i use that?I googles it but get the same BS description of what it does that doesnt mean anything unless you already know what it does. ;  it sets opengl so that all the following matrix manipulation code (glrotate, gltranslate etc) effects the texture matrix for the currently active texture (lets you do things like rotate or translate a texture around)however, if you aint got it active then dont worry about it 