Re: [PyOpenGL-Users] Aliasing changes when I have a white background
Brought to you by:
mcfletch
From: Greg E. <gre...@ca...> - 2007-08-12 02:30:11
|
Rick Muller wrote: > The basic way I'm updating my screen is: > > #anti-aliasing code > glEnable(GL_BLEND) > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) > glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE) You're turning on smoothing for lines here, but your images look like they're made up of filled polygons. Line smoothing has no effect on polygon rendering. So I think you're not getting any anti-aliasing at all, and the black/white difference is just because the eye doesn't notice it so much against a black background. There is an option for smoothing polygons, but using it correctly is viciously difficult. Unless you're pushing the limits of rendering speed, FSAA is by far the better way to go. -- Greg |