Lec4a HW
Lec4a HW
Lec4a HW
Chapter 2
Computer Graphics
Hardware
Outline
2
Video Display Devices
Cathode Ray Tube (CRT, 陰極射綫管) display
High resolution
Good color fidelity The focusing and
deflection systems
High contrast (400:1)
High update rates
3
Focusing and Deflection of CRT
The focusing system: forces the electron beam to converge to a
small cross section as it strikes the phosphor
The deflection system: forces the electron beam spread out as it
is near to the screen
They can be controlled with either electric or magnetic fields.
4
Refresh CRT
Refresh - Redrawing the picture repeatedly
Because the light emitted by the phosphor fades very rabidly,
the refresh process is needed to maintain the picture.
Implemented by quickly directing the electron beam back over
the same screen points.
5
Raster-Scan Displays
Raster scan methods have became the dominant technology
since about 1975.
The electron beam is swept across the screen, one row at a time
a scan line
7
Raster-Scan Displays
Interlacing: each frame is displayed in two passes
non-interlaced interlaced, cycle 1 interlaced, cycle 2 interlaced,
2 cycles
9
Frame Buffer
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Questions:
What
How How
is themany
much largest
memorypixels
image
doare
weyou
there?
cantodisplay?
need allocate
for the frame buffer?
10
Frame Buffer
Black-and-white system: one bit for each pixel
More colors: n bits per pixel
0 1 … 1 0
Terms
Bit depth: the number of bits per pixel in frame buffer.
Bitmap: the frame buffer with one bit per pixel.
Pixmap: the frame buffer with multiple bits per pixel.
11
Frame Buffer
If we want a frame buffer of 640 by 480 pixels, we
should allocate:
Pixels in Frame buffer = 640 * 480
12
Frame Buffer Bit Depth
1 bit per pixel (bitmap)
1-bit
16 bits per pixel (high color)
5 bits for red, 5/6 bits for green, 5 bits for blue
potential of 32 reds, 32/64 greens, 32 blues
total colors: 65536 (216) 8-bit
14
Random-Scan Displays
Vector displays (or stroke-writing
displays)
Using a single gun to draw lines.
Think of having a VERY FAST drawing
pen.
Advantages:
Smooth and brighter lines, usually for line
drawing applications
Higher resolution than raster scan systems
Disadvantages:
Cannot display realistic shaded scenes
Game: Vectrex
http://www.vectrex.co.uk/
15
Color CRTs
Color pictures usually produced in CRT monitors by
using several kinds of phosphors that emit different-
colored light
16
Color CRTs
Beam-Penetration Method (for random-scan systems)
The CRT screen coated from inside with two layers of
Phosphor
phosphor, usually Red and Green. layers
Colors generated depend on how far the electron beam
penetrates into the phosphor layers.
Red is produced by a slow electron beam;
Green color is generated by a very fast electrons penetrates through the
red layer and excites the inner green layer;
Orange and Yellow are generated by an intermediate beam speeds, as a
combination of red and green.
Advantages: inexpensive;
Disadvantages: a limited number of color; low quality.
17
Color CRTs
Shadow-mask Method (for raster-scan displays)
Generate more colors than the beam-penetration method.
Each pixel of the screen is coated with three phosphor color
dots, red, green, and blue.
CRT HowTo
18
Flat-Panel Displays
Advantages:
Small Volume.
Light Weight.
Low Power Consumption.
19
Flat-Panel Displays
FPDs are divided into two main categories:
1. Emissive Displays: convert electrical energy into light.
Examples:
Plasma panels (等離子體顯示屏)
Thin-Film Electroluminescent Displays (薄膜電發光)
Light Emitting Diodes (LED:發光二極管)
Flat CRTs
Applications of HMDs
Portable entertainment, private movie watching
PC game lightweight i-glasses
Virtual flight simulator
Birth of CAVE:
Pocket Cathedral
(The CAVE, from Wiki) (1991)
3D Display
3D Object
24
Input Devices
Keyboard
Mouse (2D and 3D)
Trackball: a 2D input device, usually used on a mouse
or a lap-top computer.
Space ball: hand held, non-movable. It uses a strain
gauge to detect pull, push, and twist applied to the ball,
and translate them into 3D locations. Used for
navigation in virtual environments, CAD, etc.
Head Mounted Display: Although it is primarily a
display device, it can also track position and orientation
Joystick: similar to the space ball. Can be movable
and non-movable.
25
Input Devices
Data glove: a glove with sensors. Used to control
a virtual hand for grasping, dropping, and moving
an object in a virtual environment.
Image scanner: input still picture, photo, or
slides as images into computer.
Touch panel: highly transparent and embedded
over a display surface.
Digital camera: directly stores photo shots as
images on a diskette.
Digital video recorder: input a video clip in
digital form; often used for tele-conferencing.
Laser range scanner: input discrete and
scattered points on a 3D surface model from
which a digital one can be built.
26
Input Devices
Motion Capture: input full-body, facial,
hand movements
Bring Gollum to Life
27
Graphics Systems
Interactive raster-graphics systems naturally use several
processing units.
CPU
Video controller (display controller): a special-purpose
processor, used to control the operation of the display device.
28
Graphics Systems
Architecture of a simple raster-graphics system in old days
Video controller just
accesses the frame buffer Frame buffer can
to refresh the screen. be anywhere in the
system memory.
29
I/O Devices
Graphics Systems
Architecture of a raster-graphics system with a fixed
portion of the system memory for the frame buffer
I/O device
Draw primitives
Transformation
CPU Display System Rendering
Processor Memory …
32