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 & HelpPrograms › Achieving this kind of anti-aliasing
Page Index Toggle Pages: 1
Achieving this kind of anti-aliasing? (Read 888 times)
Achieving this kind of anti-aliasing?
Dec 30th, 2008, 11:41am
 
Hello all,

Here is one of my all time favorite processing works:
http://incubator.quasimondo.com/processing/ornamism.php
http://incubator.quasimondo.com/processing/ornamism2.php

But the source is not provided unfortunately. Does anyone have an idea how he achieves such smooth curves and delicate lines in a processing program?

Its also demonstrated here:
http://incubator.quasimondo.com/processing/beziers_ballet.php

and Mr. Klingemann says here that:

"From a technical point of view I'd say that the smoothness of the curves is worth mentioning. That is indeed some haute-couture antialiasing - not the regular stuff that comes with the box."

Any ideas?
Re: Achieving this kind of anti-aliasing?
Reply #1 - Dec 30th, 2008, 6:14pm
 
I can only guess, as Mario's works are always technically stunning, but...  I suspect he's manually rendering the beziers - see bezierPoint() for how to walk along a bezier.  Then plotting them with subpixel sampling  - where if you need to plot at [1.4,2.7] for example, you simulate that float coordinate by plotting to the four (or 9, or 16, or...) neighboring integer pixels by dividing up the alpha as a ratio of coverage from the floating point pixel center, producing anitaliased pixels.  just a guess, hth
Page Index Toggle Pages: 1