Anti-aliasing

Started by
2 comments, last by V-man 12 years, 1 month ago
2dknch.png

[color=#333333][font=arial, sans-serif]

I [/font][color=#333333][font=arial, sans-serif]

made ??up [/font][color=#333333][font=arial, sans-serif]

this scene[/font]

[color=#333333][font=arial, sans-serif]glutSolidSphere(0.03,50,50);[/font]


and lines using GL_LINE_STRIP with glVertex3d

remembering that before drawing them and then turn on and off the GL_LINE_SMOOTH

But if you still see the image, possesses serrated
wanted to take and make it as beautiful as possible, I believe that use anti-aliasing

what can I do?

http://mateusvitali.wordpress.com/
Advertisement
In the first instance, try glEnable()[color=#000000], passing in GL_LINE_SMOOTH. There's also a [color=#000000]glHint(GL_LINE_SMOOTH_HINT, GL_NICEST) I think, but not all implementations pay any attention to it.
Look up MSAA, its pretty easy to put in.

NBA2K, Madden, Maneater, Killing Floor, Sims http://www.pawlowskipinball.com/pinballeternal

http://www.opengl.org/wiki/Multisampling
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement