Advertisement

Newbie: Mysterious Lines

Started by January 03, 2002 02:21 PM
6 comments, last by RichGould77 23 years, 1 month ago
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 =/\=
Richard =/=
it may be your graphics card.
have you tried it without the textures?
Advertisement

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 =/\=
Richard =/=
oooooooooo
i''ve got a tip

get a new texture






..I still dont get the difference between c and c++...
..I still dont get the difference between c and c++...
oh, just found the link!
sorry, first time i''ve seen that before!
maybe something else is ''on'' or ''poking through'' your texture!
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...
Advertisement
you could have enabled a border on your oGL parameters.
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)

This topic is closed to new replies.

Advertisement