Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Seamless textures not seamless anymore

  1. #1
    Intern Newbie
    Join Date
    Nov 2002
    Posts
    37

    Seamless textures not seamless anymore

    If I have really large textures, they need to be broken down into smaller ones that the video card can handle. This is not a problem and is working fine. However, when I put the textures next to eachother the linear filtering causes a visible seam between the 2 pieces of the previously seamless texture. How can I fix it so that my texture will stay seamless after breaking it up into pieces?

  2. #2

    Re: Seamless textures not seamless anymore

    Well, I assume taht you are using a quad for each texture, so why dont you place the quads closer to each other? Maybe that will fix the problem.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2002
    Location
    Los Angeles, Ca, USA
    Posts
    22

    Re: Seamless textures not seamless anymore

    Well if your bg is an opaque plane,
    you're in good shape. Might be possible
    to do transparency now that a
    channel independant glBlendFunc
    is available, dont know.

    Heres what I remember of doing
    the opaqule tiled texture. Note
    this is SGI dont know if NVorATI
    has issues here.

    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S,GL_CLAMP_TO_BORDER);

    Build your textures with a black border
    on the texture with Alpha 0.

    Stick em together with the appropriate
    one texel overlap then blend
    with glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);

  4. #4
    Intern Newbie
    Join Date
    Nov 2002
    Posts
    37

    Re: Seamless textures not seamless anymore

    Thanks, I have got it working by copying the edge of one texture to the edge of the other and then moving the texture coordinates of each 0.5 so that they overlap and the linear filter looks equal on both sides.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •