Lecture 2 (Hardware and Software in Computer Graphics)
Lecture 2 (Hardware and Software in Computer Graphics)
COMPUTER GRAPHICS
LECTURE 2 (PART 2)
– Working of CRT
Focusing
System
Base Y deflect
Phosphor
Connector
Pins
x deflect
Control
Electron grid
Gun voltage
Hardware and Software in Computer
Graphics 4
Cathode Ray Tube
• Basic Operation
– The electron gun emits a beam of electrons (cathode rays).
– The electron beam passes through focusing and deflection
systems that direct it towards specified positions on the
phosphor-coated screen.
– When the beam hits the screen, the phosphor emits a small
spot of light at each position contacted by the electron
beam.
• Because the light emitted by the
phosphor fades very quickly some
method is needed for maintaining Intensity distribution of
the screen picture an illuminated phosphor
spot on a CRT screen
at (800,600)
Hardware and Software in Computer
Graphics 11
Cathode Ray Tube
• Frame Buffer
– The depth (or intensity) of the frame buffer, defined
as the number of bits that are used for each pixel,
determines properties such as how many colors can
be represented on a given system
– 1-bit-deep frame buffer allows 2 1 colors (black and
white)
– 8-bit-deep frame buffer allows 2 8 (=256) colors
– In full color systems (also called RGB-color
systems), there are 24 (or more) bits per pixel in
order to display sufficient colors to represent most
images realistically
Hardware and Software in Computer
Graphics 12
Cathode Ray Tube
• Bitmap
– On a black and white system with one bit per pixel, the frame buffer is
commonly called a bitmap
– For systems with multiple bits per pixel the frame buffer is often
referred to as a pixmap
1 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 0
0 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
0 1 1 0 0 1 1 0
1 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0
MoveTo (300,800)
LineTo (700,800)
LineTo (500,300)
LineTo (300,800)
pixel value
y
Color depth = 6 bits 26 (= 64) colors
Hardware and Software in Computer
Graphics 21
Cathode Ray Tube
• Gray Level Images in CRT
– n-bits per pixel produce 2n gray levels.
– Many images use 8-bits per pixel, i.e. 256 gray levels since it gives
acceptable quality.
00 01 10 11
Operation of a
delta-delta, shadow
mask CRT.
Three electron
guns, aligned with
the triangular
color-dot patterns
on the screen, are
directed to
each dot triangle
by a shadow mask
Architecture of a
simple raster
graphics system
Architecture of a
raster system with a fixed
portion of system memory
reserved for frame buffer
Hardware and Software in Computer
Graphics 41
Graphics System
• Raster Scan Systems
– Employs a special purpose processor called video controller or display controller in
addition to CPU
– Frame buffer can be anywhere in the system memory
– More sophisticated raster systems employ other processors as coprocessors and
accelerators
•Two registers are used to store the coordinates of the screen pixels.
•Initially, the x register is set to 0 and the y register is set to Ymax, The value stored
in the frame buffer for this pixel position is then retrieved and used to set the
intensity of the CRT beam.
•Then the x register is incremented by 1, and the process repeated for the next pixel
on the top scan line. This procedure is repeated for each pixel along the scan line.
•After the last pixel on the top scan line
has been processed, the x register is reset
to 0 and the y register is decremented by
1.
•Pixels along this scan line are then
processed in turn, and the procedure is
repeated for each successive scan line.
•After cycling through all pixels along the
bottom scan line (y = O), the video
controller resets the registers to the first
pixel position on the top scan line and the
refresh process starts over.
Basic video-controller refresh operations
Hardware and Software in Computer Graph 43
ics
Graphics System (Random Scan Systems)
An application program is input and stored