PDA

View Full Version : alpha on quads -> unwanted edge



jameswh
09-19-2008, 02:37 AM
hi

i have another problem... when rendering a quad in alpha, the border of the quad gets a darker colour on 2 sides, 1 pixel in depth

its as if opengl is additionally drawing a line loop on top, and applying the alpha twice.

how can i get rid of this? i just want to draw a pure block of colour with alpha blending.

best
james

jameswh
09-19-2008, 02:40 AM
oh sorry! ignore that, its my mistake, i was drawing the lineloop myself (oops!)

but this brings me back to another problem, my filled quads are always 1 pixel less in height and width than my lineloops.

is there anyway to corerct this, or do i always have to manuall compensate (which is a pain after scaling is applied)