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.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › Anti-Aliasing for Dummies
Page Index Toggle Pages: 1
Anti-Aliasing for Dummies (Read 2558 times)
Anti-Aliasing for Dummies
Jun 26th, 2007, 12:43am
 
Since I can't do this...
Code:

import processing.opengl.*;
void setup(){
size(200,200,OPENGL);
smooth();
background(100);
// Comment out next line for rubbishy pixelated goodness
noStroke();
ellipse(10,10,100,100);
}

..with smooth() and noStroke() in OPENGL, how would I go about getting an anti-aliased look to a noStroke() OPENGL sketch? (I would have searched the board but my internet is totally screwed - takes 3mins to download Google main page.)
Re: Anti-Aliasing for Dummies
Reply #1 - Jun 26th, 2007, 2:41am
 
Read through the earlier discussion about how to do this, and here is the easy solution. Just replace your opengl.jar file in the library with this one from Marius Wats:

http://workshop.evolutionzone.com/2007/04/30/hack-force-opengl-anti-aliasing-in-processing/
Re: Anti-Aliasing for Dummies
Reply #2 - Jun 26th, 2007, 8:37pm
 
Thanks that worked a treat.

I'm using it for game graphics, so I'm not to worried about the refresh.

I wonder though - I assume the refresh happens on any instance of an opengl graphics object, not just the main stage right (because you'd all be pretty dumb if you hadn't thought of it)?
Page Index Toggle Pages: 1