Black Borders

Anybody had the same problem. i got dark/black borders around my textured triangles, though the texture-file itself is ok.

thanks for the help and cheers,
martin

doh, i think i solved it. how about a border around the texture. i’ll try that and let you know. sorry for the inconv.
cheers,
martin

[This message has been edited by martinzwigl (edited 01-02-2003).]

What’s your texture wrap mode?

GL_CLAMP samples the texture border, this would lead to the results you have. Note that the texture border is defined for all textures, not only if you actually specify a border yourself. And it’s black too

Try GL_CLAMP_TO_EDGE_EXT (might work without the EXT suffix too). That’s an extension, so technically you’d have to check for it being supported. However, most graphics chips in consumer PCs do, as it’s close to Direct3D semantics.