Archived

This topic is now archived and is closed to further replies.

RichGould77

Newbie: Mysterious Lines

Recommended Posts

RichGould77    122
I have been having problems with little white lines appearing at the edges of my textured polygons. I was told that this was possibly to do with the way that photoshop saves TGA files, but even after converting my images into BMP files and using masking instead of the alpha channel, the lines persist. There seems to be no way to work our on which images they will appear or on which sides, or how long they will be. They do always remain he same though no matter how many times the program is run. I feel like I''m forgetting to enable or disable something? Any ideas? An example of my problem can be found on the link below. The area in question has been circled red (I''m sure u could work that out but still..) http://aitoph.topcities.com/lines.bmp thanks Richard =/\=

Share this post


Link to post
Share on other sites
RichGould77    122

I''ve tried it on several PCs, an old 8mb, and 32mb and a 64mb card, all made my different manufactures. No change in the problem.

I haven’t tried it without the textures, but I would assume that the problem would not persist. As my picture probably shows, the graphics are used in an animation so it’s the same quad being textured each time, and only on certain pictures does the problem present, how could I test such a situation without using textures?

Richard =/\=

Share this post


Link to post
Share on other sites
alargeduck    122
this may not apply, but if you dont want the textures to repeat, try using GL_CLAMP:

glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);

a while ago i made a program that utilized a simplistic skybox. i built the textures with GL_REPEAT and got nasty black lines at the edges. Tried using GL_CLAMP, and the skybox was seamless. Im guessing this has to do with rounding errors.

looks like the texture shouldnt be repeating, so give this a try...

Share this post


Link to post
Share on other sites
willyx    122
I had the some problem, and to fix it i''ve add
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP);
in the loading rutine of the tga (like the other reply said)

Share this post


Link to post
Share on other sites