Weird lines on my display?

Post: #1
Hi folks.

I have a smallish program which simply loads in an RGB PNG image, changes the format to RGBA, copies the Red channel into the Alpha channel, uploads it as an RGBA texture. Then all I simply want to do is draw textured quads with it. The texturing works fine but for some reason I'm getting this quirky stupid line being drawn accross the image in white. I thought maybe it was the line where the two triangles meet, but even without any rotation of the quads the line is sometimes at slightly different angles and sometimes at a totally different direction altogether. Also sometimes the line goes through the middle of the image while at other times it is off to one side. And furthermore, in some cases I get two or three lines on the same quad all at different angles which seems to change in some way when the quad is positioned at different coordinates.

Has anyone any idea what might be going on here? The blend mode is GL_ONE,GL_ONE. I also have smooth shading enabled with different colors at each vertex. I have no idea why it is producing these weird lines.
Quote this message in a reply
Post: #2
I found that GL_ONE,GL_ONE gives the white lines, wheras GL_SRC_ALPHA,GL_ONE does not, even if the source alpha is filled with 1.0. Bizarre!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  n00b question: getting rid of lines along edges of polygons Andrew 2 4,127 Jun 5, 2005 05:57 PM
Last Post: Andrew
  Weird display results when porting an application from x86 meeuw 3 3,479 Apr 14, 2005 01:59 PM
Last Post: Fenris
  Blending -> Black Lines Through Textures (Wireframe like) hangt5 2 4,589 Apr 5, 2005 05:06 AM
Last Post: ThemsAllTook
  textures vs lines and polygons reubert 16 10,718 Jul 9, 2003 05:20 PM
Last Post: henryj
  thick mitered lines? arekkusu 1 3,165 Jul 8, 2003 04:45 PM
Last Post: Zoldar256