Hi!
I've made a program that draws bezier curves and now i was to anti-alias them!
Does anyone know how to do this?
Printable View
Hi!
I've made a program that draws bezier curves and now i was to anti-alias them!
Does anyone know how to do this?
What is aliasing & anti-aliasing? The words are vaguely familiar... I guess they have something to do with the FFT theory.
FFT theory? Doubt it. It's a term to describe pixels on a screen, and deals with calculations of 'visibility' to a degree in unabsolute pixels.Quote:
Originally posted by krtxmrtz
What is aliasing & anti-aliasing? The words are vaguely familiar... I guess they have something to do with the FFT theory.
Like If I draw a line, it goes from point a to point b, with whatever curves inbetween.
What alias is, would be the jagged-ness, as it is only the actual absolute result is.
Anti-aliasing is combining pixels around the line, to make a more smoother representation of this line.
i personally have no real idea how to do it, but i imagine you would have to use Single or Double floating point values for each location on the bezier curve, then for the nearest group of pixels on screen you calculate the square of the closest distance to said point on the line and set a value of grey (if hte line is black) accordingly.
or something. yeah. loop throuhg the locations on the line....
-C
on the off chance that you're using VB.net, it has AA options built in.
-C
i've solved it!
check out the games and graphics section if you're interested.