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.

Downloads

There are 5 comments to "Hack: OpenGL anti-aliasing for 0125". You may leave your own comment.
1. lenny, September 8th, 2007 at 19:28

great, thanks marius.

2. David Wicks, September 21st, 2007 at 18:08

Good stuff once again. Thanks especially for the info about where you made the changes. Curious to peep under the hood myself soon.

3. Rahul Jain, October 1st, 2007 at 03:20

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

4. Aaron K, October 12th, 2007 at 01:17

yes!

5. marius watz, October 12th, 2007 at 15:43

Rahul, I am the wrong person when it comes to actually doing anti-aliasing. I merely know how to force it on in Processing…

Comment on this entry

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>