Anti Aliasing

I am running the example that is supposed to display smooth lines using anti-aliasing feature.The line appears jagged when I rotate it by some degrees.
Any ideas why it’s not working?

code snippet:
glEnable(GL_LINE_SMOOTH);
glEnable(GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
glLineWidth (3.0);

Thanks in advance.

Are you specifying alpha for your line color(s)? A screenshot would be helpful.

What alpha should i specify to get the lines antialiased?

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.