PDA

View Full Version : Seamless textures not seamless anymore



Melekor
10-19-2002, 06:10 PM
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?

kaysoft
10-20-2002, 04:43 AM
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.

tbfx
10-20-2002, 11:54 AM
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);

Melekor
10-20-2002, 12:24 PM
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.