• Advertisement
Sign in to follow this  

stair case effect of bresenham line drawing

This topic is 4526 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement