OpenGL Texturing, problem with borders

Started by
1 comment, last by zimmi 20 years, 6 months ago
Hi, i have a problem texturing sectors of a landscape. The borders of each sector can be seen (but i don''t want that, of cause) because they are a little bit highlighted (only a small strip). These sectors are created by TRIANGLE_STRIPS and Mipmapped Textures (DDS). Changing the Texturecoordinates or the Normals didn''t succeed, it can only reduce this effect. I also tried the DECAL-Mode for Texturemapping and leaving out the material-properties, but it''s always the same... Is this perhaps a general problem under OpenGL?
Advertisement
I suppose you use the default wraping mode, GL_REPEAT. Try to use the clamping mode instead.

// First, bind your texture
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
Thanks, that was the thing...
I left the glTexParameteri- commands as remarks, when
including compressed textures....

This topic is closed to new replies.

Advertisement