#157838 - TwentySeven - Fri May 30, 2008 10:12 am
(This was split off another topic, btw, for those thinking I have tourettes or something ;))
Keep in mind that wikipedia article completely botches Bresenham
not only is the code incorrect, it misses the entire point, performing a line walk using no divides and integer only.
Try here instead.
http://www.gamedev.net/reference/articles/article767.asp
Last edited by TwentySeven on Sat May 31, 2008 12:16 am; edited 1 time in total
Keep in mind that wikipedia article completely botches Bresenham
not only is the code incorrect, it misses the entire point, performing a line walk using no divides and integer only.
Try here instead.
http://www.gamedev.net/reference/articles/article767.asp
Last edited by TwentySeven on Sat May 31, 2008 12:16 am; edited 1 time in total