The goal of the first lesson is to render the wire mesh. To do this, we should learn how to draw line segments. We can simply read what Bresenham’s line algorithm is, but let’s write code ourselves.
// Utility for creating and saving simple RGB images struct Image { int w,h; vector data; Image(int w,int h):w(w),h(h),data(wh3,255){} void setPixel(int x,int y ...
So I'm taking a computer graphics course in openGL right now, and for the first lab we are to among other things implement three line drawing routines. First off a normal DDA algorithm, that's easy..
Abstract: The present paper focuses on effective approach to minimize the error in the existing Bresenham's Line Drawing Algorithm (BLDA) in computer graphics. In ...