Sign in to follow this  
sitwind

how to enable GL_LINE_SMOOTH

Recommended Posts

hi, i have drawn a few QUADS with texture and would like to enable the LINE_SMOOTH. I added the following 2 lines to my code: Gl.glEnable (Gl.GL_LINE_SMOOTH); Gl.glHint (Gl.GL_LINE_SMOOTH_HINT, Gl.GL_NICEST); is this sufficient to enable the anti aliasing? because nothing is happening. any tips what i am doing wrong? thanx

Share this post


Link to post
Share on other sites
Did you forget to disable texturing before drawing the lines? And what's the behaviour you get? "Nothing is happening" could mean a lot of things, like are the lines showing up at all, or are they just not anti-aliased?

Share this post


Link to post
Share on other sites
they are not antialiased.

i enabled the antialiasing code as
suggested above. then started to
do some drawing.

some not textured triangels and
some textured Quads, none of them
seemed to be antialiased.

Share this post


Link to post
Share on other sites
Quote:
Original post by sitwind
they are not antialiased.

i enabled the antialiasing code as
suggested above. then started to
do some drawing.

some not textured triangels and
some textured Quads, none of them
seemed to be antialiased.
GL_LINE_SMOOTH is meant for antialiasing lines... GL_POLYGON_SMOOTH is for polygons. Depending on what you're doing, you're probably better off with multisampling if it's available.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this