Sign in to follow this  
sheeja

stair case effect of bresenham line drawing

Recommended Posts

sheeja    122
I want to know whether DDA algorithm will solve the problem of stair case effect of bresenham line drawing algorithm.Xiaolin Wu's line algorithm is better than this DDA ?

Share this post


Link to post
Share on other sites
The Bresenham algorithm is subject to aliasing (this is the name of the staircase effect). Since Wu's algorithm is an antialiasing algorithm, it will give you more correct results. Another solution is to use a bigger rendering target (for example w x 2, h x 2) and to scale down the image once you finish the rendering. It is slower, but has some other interesting effects (full scene anti-aliasing).

(BTW Bresenham is a DDA (differential digital analyzer) algorithm).

See here for further informations.

(edit: link, statements, and so on)

HTH,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this