









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Graphics is a fascinating area in Computer Science. It has wide applications both in research and industry. This course will teach the fundamentals of Computer Graphics. It deals with science of image formation and rendering on a computer screen. This lecture includes: Output, Primitive, Defining, Picture, Intensity, Pixels, Geometric, Circle, Polygons, Algorithm, Antialiasing
Typology: Slides
1 / 16
This page cannot be seen from the preview
Don't miss anything!










Defining a Picture ^ Picture may be defined^
^ The basic geometric structures are referredto as output primitives
Points ^ Single Coordinate Position^
Set the bit value(color code) corresponding to a specifiedscreen position within the frame buffer
Lines ^ Intermediate Positions between TwoEndpoints^
Jaggies are due to rounding of pixel positions, less evident on high resolution machines
DDA ^ Digital differential analyzer finds the differencebetween the current point and the next point to bedrawn ^ Distance to the next point depends upon the slopeof the line ^ Moves the distance required in both x and ydirection ^ Draws the point ^ Appropriate modifications are made to the framebuffer
DDA Algorithm ^ Digital Differential Analyzer^
Unit x interval = 1
m y y^
k k^
1
DDA Algorithm ^ Digital DifferentialAnalyzer^
Unit x interval = 1
Unit y interval = 1
Unit x interval = -
m y y^
k k^
x1 ^1
DDA Algorithm ^ Digital Differential Analyzer^
Unit x interval = 1
Unit y interval = 1
Unit x interval = -
Unit y interval = -
m x x^
k k
1
1
x1
DDA algorithm: Pros and Cons ^ Pros^
^ Cons^
Quiz 1 ^ __________ or ____________ may be used for focusand deflection. (2) ^ Main components of a CRT are ___________ and_______________ (2) ^ What is the difference between Raster and Randomscan displays? (1) ^ How long will it take to fill the frame buffer if 10000 bitsare transferred per second? (5)^
For a 640X480 frame buffer with 12 bits per pixel. For a 1280X1024 frame buffer with 24 bits per pixel. Can you achieve a 30 fps in any of the configurations above?
Bresenham
’s Algorithm(cont.)
^
^
^
b a yx F
c yb
xa
y xF
(^00)
0
0
0 0
^
^
^
c by ax yx F^
^
2 ,
^
, ,^2
then, 0 if
b a x y d
d^
,^2
then, 0
if
^
a x d
d