Results 1 to 2 of 2

Thread: Black Borders

  1. #1
    Member Contributor
    Join Date
    May 2001

    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,

    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.

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

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Bonn, Germany

    Re: Black Borders

    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.

Similar Threads

  1. shadowmap gets extruded at the borders -black bars
    By ehmdjii in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 09-07-2008, 03:14 PM
  2. Black borders around clamped textures
    By Ketracel White in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-25-2004, 10:50 PM
  3. Replies: 2
    Last Post: 02-23-2004, 09:34 PM
  4. Frame borders
    By MeadowDreamer in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-18-2002, 09:28 AM
  5. Texture borders
    By thebluegnu2000 in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 11-23-2000, 12:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean