Update: This hack is obsolete as of 0133. Read more here.
For those of you who have been using the hack I posted a while back to force anti-aliasing in Processing, here’s an updated version for Processing 0125. According to the source repository Ben has been fixing lots of little things in PGraphicsOpenGL, so it’s worth updating.
The hack is actually lying dormant in the PGraphicsOpenGL source, but it’s been commented out with the note “how to integrate this properly?”. Obviously, having to set hardware-specific settings goes against the ease of use that Processing is known for. I guess Ben and Casey are just trying to find a way to include it in a manner consistent with the rest of the application.
To use the hack simply download the ZIP archive below and unpack it to produce the hacked “opengl.jar” file. Drop the JAR into the “libraries\opengl\library” subfolder of your Processing application directory. Make sure to make a backup of the original opengl.jar. Once replaced, the new PGraphicsOpenGL class always initializes with 4x supersampling.
- OpenGL hack for version 0125: opengl-hack-0125.zip.
- OpenGL hack for version 0124: opengl-hack-0124.zip.





great, thanks marius.
Good stuff once again. Thanks especially for the info about where you made the changes. Curious to peep under the hood myself soon.
Sir,
Can u please help me with the coding for Anti-aliasing of characters and lines.i am a rookie in this field . Any kind of help would be greatly appreciated.
thank you
yes!
Rahul, I am the wrong person when it comes to actually doing anti-aliasing. I merely know how to force it on in Processing…