Archived

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

OpenGL Texturing, problem with borders

This topic is 5173 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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