Results 1 to 6 of 6

Thread: Anti-Aliasing Bezier Curves

  1. #1

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Arrow 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?
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  2. #2
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Question

    What is aliasing & anti-aliasing? The words are vaguely familiar... I guess they have something to do with the FFT theory.

  3. #3
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    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.

  4. #4
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869
    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
    Unite, proletariat!

  5. #5
    Fanatic Member siyan's Avatar
    Join Date
    Jul 2001
    Location
    GOOOAAAAALLLLL!!!!!
    Posts
    869
    on the off chance that you're using VB.net, it has AA options built in.

    -C
    Unite, proletariat!

  6. #6

    Thread Starter
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    i've solved it!
    check out the games and graphics section if you're interested.
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width