glHint with line, point, polygon smoothing hints

Could anybody observe the effect of using GL_POINT_SMOOTH_HINT, GL_LINE_SMOOTH_HINT or GL_POLYGON_SMOOTH_HINT on the antialised primitives?

For example I’m using

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glEnable(GL_LINE_SMOOTH);

glHint(GL_LINE_SMOOTH_HINT,GL_NICEST);
// draw line

for the line smoothing. Line smoothing works fine but the line is still drawn in the same way with GL_DONT_CARE. I tried this with different linewidths and
lines drawn with different angles. However, I could not see any difference. It is same for other hints.

Do I need any other OpenGL calls?

Hints are just hints, they may have or may not have any effect, depending on the GL implementation.
I remember FOG quality hints being somewhat used on some nvidia cards, but that’s it.

7600GT:
lines get just 4 different alpha-values for the antialiasing (it’s still ugly). Hardware-accelerated, but ugly enough to make you do custom shader-based line-AA (with 4px wide lines)

points become solid circles, but it’s software-emulated

polygon edge AA works with strict requirements on the depth-buffer setting, and is still 4-values-ugly.

Radeon9600: none works iirc.

For what it’s worth, GPU Gems2 has a great chapter on prefiltered lines. I just moved the whole thing to the GPU (requires a geometry shader to near clip the line and convert it to a tristrip) so I’m feeling particularly pleased with myself. Pretty simple, really fast, and they look marvelous. An added perk is a uniform look across a variety of hw.

In a nutshell the idea is simply to create 4 planes to bound the extent of the line and its filter and discard the fragments on the outside in a shader, alpha blending what’s left inside as a function of distance to the line with your filter of choice (Gaussian works great).

http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter22.html

CatDog