|
-
Oct 9th, 2002, 10:07 PM
#1
Thread Starter
Frenzied Member
Anti-Aliasing Bezier Curves
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?
-
Oct 13th, 2002, 01:54 PM
#2
What is aliasing & anti-aliasing? The words are vaguely familiar... I guess they have something to do with the FFT theory.
-
Oct 13th, 2002, 05:44 PM
#3
So Unbanned
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.
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.
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.
-
Oct 13th, 2002, 08:31 PM
#4
Fanatic Member
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
-
Oct 13th, 2002, 08:31 PM
#5
Fanatic Member
on the off chance that you're using VB.net, it has AA options built in.
-C
-
Oct 14th, 2002, 12:22 AM
#6
Thread Starter
Frenzied Member
i've solved it!
check out the games and graphics section if you're interested.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|