We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Antialias (Read 496 times)
Antialias
Apr 15th, 2010, 7:25am
 
Is it possible to enable and disable antialias on command?

I'm not talking about smooth() or gl.glEnable (gl.GL_LINE_SMOOTH);.  They work as expected.  

I'm talking about the hints, which does different sort of Antialias on the entire sketch.
hint(DISABLE_OPENGL_2X_SMOOTH);
hint(ENABLE_OPENGL_2X_SMOOTH);

Most of the time, I want it disabled, but there is one point in my sketch where I'd like to turn it on, then turn it back off when I'm done.  I have a textured sphere, and it appears none of the normal smoothing commands Antialias the edge of the sphere (suggestions welcome), but it does work if I use the hint.  Problem is, I don't want to enable the hint for my entire sketch for performance reasons.
Page Index Toggle Pages: 1