PDA

View Full Version : Prob: A thin line appears when using blending



Xerkan
12-07-2004, 11:29 AM
When I use blending a thin black line appears diagonal right across the window that I want to blend.
Here is a picture that show what the problem is.
Picture (http://www.student.itn.liu.se/~kriga592/thin_line.JPG)
The picture shows a window that is half transparent. The glass is a GL_QUADS and is defined by four vertices.
Why does the line appear and how can I fix it?

Aeluned
12-07-2004, 12:08 PM
Well, internally the video card driver might divide your GL_QUADS call into triangles in order to optimize its rendering.

my guess is that what you're seeing there is the quad broken into two triangles and then the texture border is being sampled due to non-point sampled texturing.

try setting your texturing to GL_CLAMP_TO_EDGE and see if that fixes the problem.

Xerkan
12-09-2004, 02:54 AM
To turn of GL_POLYGON_SMOOTH made the thin lines disappear.