Results 1 to 2 of 2

Thread: Near-edge texturing artifacts

  1. #1
    Senior Member Regular Contributor
    Join Date
    Apr 2001

    Near-edge texturing artifacts

    I have a 3d multi-textured polygon. Near the edges of it, from certain angles, the last texel seems miscolored. What is this called and how do I fix it?


  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2001

    Re: Near-edge texturing artifacts

    This may be related to the texture coordinates you use: if they are close to the actual borders of the texture, and you do not use GL_CLAMP but GL_WRAP or if the border-color of the texture is quite different from the texture colors this may occur.

    I think it is called 'bleeding'.

    It can also happen when you use mipmaps: the downsampled versions of the actual texture will gradually show more 'border-color', resulting in larger areas along the texture edges displaying the 'wrong' color.

    Depending on what your texturing requirements are (wrapping or not for example), your problem may be solved by not using the 'extreme' texture coordinates 0.0 and 1.0 but slightly offset coordinates like 0.00001 and 0.99999.

    The same problem can occur when you have a single texture in which several distinct sub-textures are stored too close to eachother and you use mipmaps that are not carefully constructed: the sub-textures will be blended into each other along their edges by the downsampling filters.



Similar Threads

  1. Strange edge artifacts with gl_FrontFacing
    By awangk in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-09-2011, 02:32 PM
  2. Multi-Texturing and .... normal texturing?
    By Andy Gilbert in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-06-2010, 05:30 PM
  3. Texture Atlas edge to fix?
    By Keith Z. Leonard in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 10-10-2008, 04:12 PM
  4. vsm artifacts
    By Vexator in forum OpenGL: GLSL
    Replies: 4
    Last Post: 11-07-2007, 03:58 PM
  5. Edge Dimension or Edge Size
    By Rong Yao in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-11-2002, 07:20 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