Newbie: Mysterious Lines
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 =/=
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''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!
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...
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...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement