OpenGL Texturing, problem with borders
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?
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);
// 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);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement