You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Antialias does not work properly in recent processing versions unless you
first do a " hint(DISABLE_OPENGL_2X_SMOOTH);" Then you can reenable it or
smooth() or whatever. If you don't disable it first, you don't get the
best AntiAlias quality.
void setup() {
size(320,240,OPENGL);
hint(DISABLE_OPENGL_2X_SMOOTH);
//hint(ENABLE_OPENGL_4X_SMOOTH); //after disabling the 2x this works fine
smooth(); // this works even better than the 4x! super-smooth! ;)
}
From b...@processing.org on June 07, 2010 01:18:12
Comment from fry, 2009-12-16 06:57
Thanks for the report, nobody had bothered to post this yet, so I wasn't
aware that it was this prevalent. What hardware are you running? I also
suspect this depends heavily on the graphics hardware (thought I saw a
handful of MacBook Pros on that thread) as to the exact behavior.
The hint() vs. smooth() discrepancy is that smooth() makes the OpenGL
smoothing calls (or at least did previously), while the hint() just handles
FSAA. FSAA should almost always give better results in terms of overall
consistency (the GL smoothing calls tend to overdo it).
Additional Comment #1 From
fry
2009-12-16 06:57
<!--
addReplyLink(1); //-->[reply]
Thanks for the report, nobody had bothered to post this yet, so I
wasn't
aware that it was this prevalent. What hardware are you running? I also
suspect this depends heavily on the graphics hardware (thought I saw a
handful of MacBook Pros on that thread) as to the exact behavior.
The hint() vs. smooth() discrepancy is that smooth() makes the OpenGL
smoothing calls (or at least did previously), while the hint() just handles
FSAA. FSAA should almost always give better results in terms of overall
consistency (the GL smoothing calls tend to overdo it).
I'm running a MacBook Pro with 10.6.2.
From what I understand and testing the bug, it's wasn't a hint() vs.
smooth() issue. Neither worked. Using "hint(DISABLE_OPENGL_4X_SMOOTH);
and "GL_LINE_SMOOTH" was just as ineffective as using smooth(). The
problem was that nothing worked correct until you first did a disable hint
for 2X_SMOOTH, then everything works fine (both hint() and smooth()).
From b...@processing.org on June 07, 2010 01:18:14
Comment from fry, 2009-12-16 09:38
No, there are four that are covered by Processing:
no smoothing, via noSmooth()
the default, which is 2x fsaa
4x fsaa, by calling hint(4X)
smooth() which calls gl.glEnable(GL.GL_XXXXX_SMOOTH); methods, but is
ignored when FSAA is enabled (actually now i look and see that it's only
ignored on 2x, but should also be on 4x).
From andres.c...@gmail.com on November 20, 2012 19:42:58
Anti-aliasing has been completely reworked in 2.0. gl.glEnable(GL.GL_XXXXX_SMOOTH) are not used anymore. Now, there are two anti-aliasing configurations in Processing:
no smoothing, via noSmooth()
Nx fsaa, by calling smooth(N). N must be smaller or equal than the maximum number of samples supported by the hardware. N = 2 is the default.
Activity
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:18:12
Comment from fry, 2009-12-16 06:57
Thanks for the report, nobody had bothered to post this yet, so I wasn't
aware that it was this prevalent. What hardware are you running? I also
suspect this depends heavily on the graphics hardware (thought I saw a
handful of MacBook Pros on that thread) as to the exact behavior.
The hint() vs. smooth() discrepancy is that smooth() makes the OpenGL
smoothing calls (or at least did previously), while the hint() just handles
FSAA. FSAA should almost always give better results in terms of overall
consistency (the GL smoothing calls tend to overdo it).
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:18:13
Comment from jeffg, 2009-12-16 07:51
(In reply to comment #1)
I'm running a MacBook Pro with 10.6.2.
From what I understand and testing the bug, it's wasn't a hint() vs.
smooth() issue. Neither worked. Using "hint(DISABLE_OPENGL_4X_SMOOTH);
and "GL_LINE_SMOOTH" was just as ineffective as using smooth(). The
problem was that nothing worked correct until you first did a disable hint
for 2X_SMOOTH, then everything works fine (both hint() and smooth()).
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:18:13
Comment from taifunbrowser, 2009-12-16 09:32
So, it appears that there are in fact 4 states to opengl smoothing, where
processing assumes there are only 3:
States:
Where choice 2 is apparantly default, 4 is achieved by disabling #2 and
calling smooth() anyway.
processing-bugs commentedon Feb 10, 2013
From b...@processing.org on June 07, 2010 01:18:14
Comment from fry, 2009-12-16 09:38
No, there are four that are covered by Processing:
ignored when FSAA is enabled (actually now i look and see that it's only
ignored on 2x, but should also be on 4x).
processing-bugs commentedon Feb 10, 2013
From andres.c...@gmail.com on November 20, 2012 19:42:58
Anti-aliasing has been completely reworked in 2.0. gl.glEnable(GL.GL_XXXXX_SMOOTH) are not used anymore. Now, there are two anti-aliasing configurations in Processing:
github-actions commentedon Jun 18, 2021
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.