Archived

This topic is now archived and is closed to further replies.

zimmi

OpenGL Texturing, problem with borders

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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);

Share this post


Link to post
Share on other sites
Thanks, that was the thing...
I left the glTexParameteri- commands as remarks, when
including compressed textures....

Share this post


Link to post
Share on other sites