Mod1
Mod1
• Video Display devices- Refresh Cathode Ray Tubes, Random Scan Displays
and systems, Raster scan displays and systems.
6
Basic concepts in Computer Graphics
CST 304-CGIP AB 7
7
Interactive Computer Graphics:
• The computer will receive signals from the input device, and the picture is
modified accordingly.
Advantages:
• Higher Quality
• More precise results or products
• Greater Productivity
• Significantly enhances our ability to understand data and to perceive trends.
CST 304-CGIP AB 9
9
Non-Interactive or Passive Computer Graphics:
• For some training applications, particular systems are designed. For example Flight
Simulator.
CST 304-CGIP AB 11
1
1
• Flight Simulator:
• Use in Biology:
CST 304-CGIP AB 12
Computer-Generated Maps:
• Town planners and transportation engineers can use computer-generated maps
which display data useful to them in their planning work.
Architect:
• Architect can explore an alternative solution to design problems at an
interactive graphics terminal.
• In this way, they can test many more solutions that would not be possible
without the computer.
CST 304-CGIP AB 13
30-08-2020 )
CS401- COMPUTER GRAPHICS(Asha Baby,VJEC 10
Presentation Graphics:
• Example of presentation Graphics are bar charts, line graphs, pie charts and other
displays showing relationships between multiple parameters.
CST 304-CGIP AB 14
Computer Art:
• Computer Graphics are also used in the field of commercial arts.
• It is used to generate television and advertising commercial.
Entertainment
CST 304-CGIP AB 15
Visualization:
Educational Software:
CST 304-CGIP AB 16
Printing Technology:
Computer Graphics is used for printing technology and textile design.
CST 304-CGIP AB 17
Pixel
• Pixel is the smallest element of an image.
• In an 8-bit gray scale image, the value of the pixel between 0 and 255.
• The value of a pixel at any point correspond to the intensity of the light
photons striking at that point.
We will zoom that image to the extent that we are able to see some pixels division.
CST 304-CGIP AB 19
Calculation of total number of pixels
• Then in that case the number of PEL would be equal to the number of rows
multiply with number of columns.
CST 304-CGIP AB 20
Gray level
• The value of the pixel at any point denotes the intensity of image
at that location, and that is also known as gray level.
CST 304-CGIP AB 21
Pixel value
• Each pixel can have only one value and each value denotes the intensity of light
at that point of the image.
• The value 0 means absence of light. It means that 0 denotes dark, and it further
means that when ever a pixel has a value of 0, it means at that point, black color
would be formed.
• Have a look at this image matrix
0 0 0
0 0 0
0 0 0
• The resulting image that would be made would be something like this
CST 304-CGIP AB 23
• Aspect ratio is the ratio of the width of an image to the height of the image.
• This ratio is expressed as x:y, and differs in case of different images used in
photography, television, computer applications and so on.
• Generally, the higher the resolution, the higher is the quality of the image.
CST 304-CGIP AB 24
Aspect ratio Resolution
The common aspect ratios used are The common monitor resolutions
4:3,16:9 are 640x480, 800x600 and
1024x768.
CST 304-CGIP AB 25
Input devices
• The input devices are the hardware that is used to transfer input to the
computer.
• The data can be in the form of text, graphics, sound, and text.
• Output can be text, numeric data, line, polygon, and other objects.
CST 304-CGIP AB 26
Output devices
Display devices
Graphic Plotter
Printer
CST 304-CGIP AB 27
Display devices
• The display device is an output device used to represent the information in the
form of images (visual form).
• Display systems are mostly called a video monitor or Video display unit (VDU).
CST 304-CGIP AB 28
Display devices
• Cathode-Ray Tube(CRT)
• Color CRT Monitor
• Liquid crystal display(LCD)
• Light Emitting Diode(LED)
• Direct View Storage Tubes(DVST)
• Plasma Display
• 3D Display
CST 304-CGIP AB 29
Cathode-Ray Tube(CRT)
CST 304-CGIP AB 30
CST 304-CGIP AB 31
• A beam of electrons (cathode rays), emitted by an electron gun, passes through
focusing and deflection systems that direct the beam toward specified positions on
the phosphor coated screen.
• The phosphor then emits a small spot of light at each position contacted by the
electron beam.
• Because the light emitted by the phosphor fades very rapidly, some method is
needed for maintaining the screen picture.
• One way to keep the phosphor glowing is to redraw the picture repeatedly by
quickly directing the electron beam back over the same points.
CST 304-CGIP AB 32
CST 304-CGIP AB 33
• The primary components of an electron gun in a CRT are the heated metal
cathode and a control grid.
• In the vacuum inside the CRT envelope, the free, negatively charged electrons are
then accelerated toward the phosphor coating by a high positive voltage.
CST 304-CGIP AB 34
• The accelerating voltage can be generated with a positively
charged metal coating on the inside of the CRT envelope near
the phosphor screen, or an accelerating anode can be used.
CST 304-CGIP AB 35
• Since the amount of light emitted by the phosphor coating depends on the number
of electrons striking the screen, we control the brightness of a display by varying
the voltage on the control grid.
• The focusing system in a CRT is needed to force the electron beam to converge
into a small spot as it strikes the phosphor.
• Otherwise, the electrons would repel each other, and the beam would spread out as
it approaches the screen.
CST 304-CGIP AB 36
• As with focusing, deflection of the electron beam can be controlled either with
electric fields or with magnetic fields.
• Different kinds of phosphors are available for use in a CRT. Besides color, a major
difference between phosphors is their persistence, how long they continue to
emit light after the CRT beam is removed.
• Persistence is defined as the time it takes the emitted light from the screen to
decay to one-tenth of its original intensity.
CST 304-CGIP AB 37
• Lower persistence phosphors require higher refresh rates to
maintain a picture on the screen without flicker.
CST 304-CGIP AB 38
• The maximum number of points that can be displayed without overlap on a CRT
is referred to as the resolution.
CST 304-CGIP AB 39
• Typical resolution on high-quality systems is 1280 by 1024, with
higher resolutions available on many systems.
• High- resolution systems are often referred to as high-definition
systems.
CST 304-CGIP AB 40
• (Sometimes aspect ratio is stated in terms of the ratio of
horizontal to vertical points.)
CST 304-CGIP AB 41
There are two ways by which we can display an object on the screen.
Raster scan display and random scan display
• In a raster-scan system, the electron beam is swept across the screen, one row at a time
from top to bottom.
• As the electron beam moves across each row, the beam intensity is turned on and off to
create a pattern of illuminated spots.
CST 304-CGIP AB 42
• Picture definition is stored in a memory area called the refresh
buffer or frame buffer.
• This memory area holds the set of intensity values for all the
screen points.
• Stored intensity values are then retrieved from the refresh buffer
and "painted" on the screen one row (scan line) at a time .
CST 304-CGIP AB 43
CST 304-CGIP AB 44
• Raster scan display used in home television sets and printers.
• For a bilevel system, a bit value of 1 indicates that the electron beam is to be
turn on at that position, and a value of 0 indicates that the beam intensity is to be
off.
CST 304-CGIP AB 45
• Additional bits are needed when color and intensity variations
can be displayed.
CST 304-CGIP AB 46
• 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 referred to as a
pixmap.
CST 304-CGIP AB 47
• Sometimes, refresh rates are described in units of cycles per
second, or Hertz (Hz), where a cycle corresponds to one frame.
• At the end of each scan line, the electron beam returns to the left
side of the screen to begin displaying the next scan line.
CST 304-CGIP AB 48
• The return to the left of the screen, after refreshing each scan
line, is called the horizontal retrace of the electron beam.
CST 304-CGIP AB 49
Random scan display
• When operated as random scan display unit, a CRT has the electron beam directed
only to the parts of the screen where a picture is to be drawn.
• Random scan monitors draw a picture one line at a time and for this reason are
also referred to as vector displays.
CST 304-CGIP AB 50
• Refresh rate on a random scan system depends on the number of
lines to be displayed.
CST 304-CGIP AB 51
CST 304-CGIP AB 52
• To display a specified picture, the system cycles through the set of commandsin the
display file, drawing each component line in turn.
• After all line drawing commands have been processed, the system cycles back to
the first line command in the list.
• Random scan displays are designed to draw all the component lines of a picture 30
to 60 times each second.
• Random scan systems are designed for line drawing applications and can not
display realistic shaded scenes.
CST 304-CGIP AB 53
• Since picture definition is stored as a set of line drawing
instructions and not as a set of intensity values for all screen
points, vector displays generally have higher resolution than raster
systems.
CST 304-CGIP AB 54
CST 304-CGIP AB 55
RASTER SCAN SYSTEMS
CST 304-CGIP AB 56
• Interactive raster graphics systems typically employ several processing units.
• The frame buffer can be anywhere in the system memory, and the video
controller accesses the frame buffer to refresh the screen.
CST 304-CGIP AB 57
Video Controller
CST 304-CGIP AB 58
• A fixed area of the system memory is reserved for the frame buffer, and the video
controller is given direct access to the frame-buffer memory.
• Frame buffer locations, and the corresponding screen positions, are referenced in
Cartesian coordinates.
• For many graphics monitors, the coordinate origin is defined at the lower left
screen corner .
CST 304-CGIP AB 59
• The screen surface is then represented as the first quadrant of a
two-dimensional system, with positive x values increasing to the
right and positive y values increasing from bottom to top.
• Scan lines are then labeled from ymax at the top of the screen to 0
at the bottom.
• Along each scan line, screen pixel positions are labeled from 0 to
xmax
CST 304-CGIP AB 60
Basic refresh operations
• Two registers are used to store the coordinates of the screen pixels.
• 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.
CST 304-CGIP AB 61
• 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 = 0), the video
controller resets the registers to the first pixel position on the top scan line and the
refresh process starts over.
CST 304-CGIP AB 62
• Since the screen must be refreshed at the rate of 60 frames per second, the simple
procedure cannot be accommodated by typical RAM chips.
• The cycle time is too slow. To speed up pixel processing, video controllers can
retrieve multiple pixel values from the refresh buffer on each pass.
• The multiple pixel intensities are then stored in a separate register and used to
control the CRT beam intensity for a group of adjacent pixels.
• When that group of pixels has been processed, the next block of pixel values is
retrieved from the frame buffer.
CST 304-CGIP AB 63
CST 304-CGIP AB 64
• In addition to the CPU ,the raster graphics system is also contains a separate
display processor, referred to as graphics controller and display coprocessor.
• The purpose of the display processor is to free the CPU from the graphics chores.
CST 304-CGIP AB 65
RANDOM SCAN SYSTEMS
CST 304-CGIP AB 66
• It is also known as vector system.
• An application program is input and stored in the system memory along with a graphics
package.
• Graphics commands in the application program are translated by the graphics package
into a display file stored in the system memory.
• This display file is then accessed by the display processor to refresh the screen.
• The display processor cycles through each command in the display file program once
during every refresh cycle.
• Lines are defined by the values for their coordinate endpoints, and these input
coordinate values are converted to x and y deflection voltages.
• A scene is then drawn one line at a time by positioning the beam to fill in the line
between specified endpoints.
CST 304-CGIP AB 68
Suppose you have a raster system designed using an 8 inches × 10 inches screen
with a resolution of 100 pixels per inch in each direction. What frame buffer size is
required if 6 bits are stored per pixel in the buffer? (4)
CST 304-CGIP AB 69
Answer
CST 304-CGIP AB 70
Color CRT Monitors
• By combining the emitted light from the different phosphors, a range of colors can
be generated.
• The two basic techniques for producing color displays with a CRT are the beam-
penetration method and the shadow-mask method.
CST 304-CGIP AB 71
The beam penetration method
• Two layers of phosphor, usually red and green, are coated onto the inside of the
CRT screen, and the displayed color depends on how far the electron beam
penetrates into the phosphor layers.
• A beam of very fast electrons penetrates through the red layer and excites the inner
green layer.
CST 304-CGIP AB 72
• At intermediate beam speeds, combinations of red and green light are emitted to
show two additional colors, orange and yellow.
• The screen color at any point, is controlled by the beam acceleration voltage.
• Beam penetration has been an inexpensive way to produce color in random scan
monitors.
• But only four colors are possible, and the quality of pictures is not as good as
with other methods.
CST 304-CGIP AB 73
Shadow-mask methods
• It is commonly used in raster scan systems (including color TV) because they
produce a much wider range of colors than the beam penetration method.
• A shadow mask CRT has three phosphor color dots at each pixel position.
• One phosphor dot emits a red light, another emits a green light, and the third
emits a blue light.
• This type of CRT has three electron guns, one for each color dot, and a shadow-
mask grid just behind the phosphor-coated screen.
CST 304-CGIP AB 74
Delta-delta shadow mask method
CST 304-CGIP AB 75
• Commonly used in color CRT systems.
• The three electron beams are deflected and focused as a group onto the shadow
mask, which contains a series of holes aligned with the phosphor dot patterns.
• When the three beams pass through a hole in the shadow mask, they activate a dot
triangle, which appears as a small color spot on the screen.
• The phosphor dots in the triangles are arranged so that each electron beam can
activate only its corresponding color dot when it passes through the shadow mask.
CST 304-CGIP AB 76
• We obtain color variations in a shadow mask CRT by varying the intensity levels of the
three electron beams.
• By turning off the red and green guns, we get only the color coming from the blue
phosphor.
• Other combinations of beam intensities produce a small light spot for each pixel position,
since our eyes tend to merge the three colors into one composite.
CST 304-CGIP AB 77
• The color we see depends on the amount of excitation of the
red, green, and blue phosphors.
• A white area is the result of activating all three dots with equal
intensity.
• Yellow is produced with the green and red dots only, magenta is
produced with the blue and red dots, and cyan shows up when
blue and green are activated equally.
CST 304-CGIP AB 78
Direct-View Storage Tubes
• An alternative method for maintaining a screen image is to store the picture
information inside the CRT instead of refreshing the screen.
CST 304-CGIP AB 79
Advantages over refresh CRT
• Very complex pictures can be displayed at very high resolutions
without flicker.
• The erasing and redrawing process can take several seconds for a
complex picture.
CST 304-CGIP AB 80