Computer Graphics Part 1 88
Computer Graphics Part 1 88
co
1 | Page
www.gradeup.co
Computer Graphic Part-1
Content:
1. Introduction
2. Components of computer graphics
3. Application of computer graphics
4. Graphics primitives
5. Direct view storage tube
6. Flat panel display
7. Interactive devices
INTRODUCTION
It is a rapidly evolving field. Until the past two decades, graphics was mainly the
realm of artists. Now, computer graphics has touched the lives of not only artists
and engineers, but also the common man in various ways.
By graphics we will refer to any sketch, drawing special artwork or other material
to pictorially depict an object or process or otherwise convey information, as a
supplement to or instead of written descriptions. The sketch may be cartoon or
landscape building, electrical network or of the human anatomy. It may be just a
few regular lines or 2D or 3D drawing. The graphics may also include text in
various sizes and shapes.
2 | Page
www.gradeup.co
COMPONENTS OF COMPUTER GRAPHICS
Using these components, we are able to see the output on the screen in the
form of pixels.
b. TV Monitor
It helps us to view the display and they make use of CRT (Cathode Ray Tube)
3 | Page
www.gradeup.co
c. Display Controller
It is an interface between digital memory buffer and TV monitor. The main
function of this is to pass the contents of frame buffer to the monitor.
For some design applications, objects are first displayed in a wire frame outline
from that shows the overall shape and internal features of objects. Wireframe
shows allow designees to quickly see the effects of interactive adjustments to
design shapes.
4 | Page
www.gradeup.co
It packages range from 2D vector-based drafting systems to 3D solid and surface
modellers. Latest CAD packages can regularly allow rotations in three dimensions,
allowing viewing of a designed object from any desired angle, even from the
inside looking out. Few CAD software is capable of dynamic mathematical
modelling, in which case it may be marketed as CADD (computer- aided design
and drafting).
Presentation Graphics
Entertainment
Computer graphics methods are used in marketing music videos, games, cartoon
movies, television shows etc. The graphics scenes are showed by themselves
and sometimes graphics objects are combined with the actors and live scenes.
5 | Page
www.gradeup.co
presentations on almost very subject at every level. The nature of the computer
graphics is a vital component of the teaching learning process.
Computer Act
Computer graphics process are used in both fine art and commercial art
applications. The ability to create any shape and play with any color that one
can imagine through the medium of the computer has given the artist a wonderful
palate and paintbrush for use on an unlimited canvas.
One cannot use any package of recent times without observing the many graphic
items present and available on the screen to guide the user. Most software
developed today must have a GUI for user friendly and interactive operation.
Medical Applications
Computer graphics has become a powerful tool of diagnosis and treatment in the
hands of doctors. Two-dimension images of cross-sections of the human body or
specific organs are product by a CAT (Computerized Axial Tomography) scan.
Tomography is a technique of X-ray photography (CT) and position emission
tomography (PET) use projection methods to reconstruct cross sections from
digital data. These techniques are also used to monitor internal function and
show cross sections during surgery.
6 | Page
www.gradeup.co
Geographical information systems (GIS)
It refers simply to a recent technique for the assembly, integration, tabular and
graphic databases about natural and man-made features and facilities for purpose
of better understanding more efficient analysis and faster decision making.
IMAGE PROCESSING
Process used in computer graphics and image processing overlap, the two areas
are concerned with fundamentally different operations. Computer is used to create
a picture. Image processing applies techniques to update or interpret existing
pictures such as photographs
7 | Page
www.gradeup.co
a. Medical image processing
b. Face detection
c. Microscopic image processing
d. Pattern detection etc.
GRAPHICS PRIMITIVES
DISPLAY DEVICES
The important part in a PC is to display system. The systems where the graphics
are rendered in the console screen of the computer. It is responsible for graphic
display. It may be attached with a PC to display character, picture and video
output. Some of the common types of display systems are
The display systems are often referred to as Video Monitor or Video Display unit.
The most common video monitor that normally comes with a PC is the Raster
Scan type. However, every display system has three parts:
The display devices are also known as output devices. The most commonly used
output device in a graphics system is video monitor and the operation of most
video monitors is based on the Cathode-Ray Tube (CRT) design.
8 | Page
www.gradeup.co
CATHODE RAY TUBE (CRT)
The simplest version of a cathode ray tube consists of a gas-filled glass tube in
which two metal plates, one negatively changes (the cathode) and the other
positively charged (the anode), have been place. When a very large voltage is
placed across the electrodes, the neutral gas inside the tube will ionize into
conducting plasma, and a current will flow as elections travel from the cathode
to the other side.
It is a type of analog display device. They are special, electronic vacuum tubes
that use focused electron beams to display images. Through tubes of this type
are used for many purposes. They are famous for their use in such things as
televisions, oscilloscopes, computer and radar displays, and automated teller
machines. They are used in video game equipment.
When used inside a television set, a CRT’s electrons are concentrated in a light
beam by positively charged terminal, called an anode. An accelerating anode is
then use to speed up the movement of the electrons. These fast-moving electrons
fly through the tube’s vacuum hitting the phosphor-coated screen and making it
glow.
They are found in oscilloscopes, and similar devices are used in TV picture tubes
and computer displays. The name goes back to the early 1900s. Cathode-ray
tubes use an electron bean; before the basic nature of the beam was understood,
9 | Page
www.gradeup.co
it was called cathode ray because it originated from the cathode (negative
electrode) of a vacuum.
The cathode, at the left end in the figure, is raised to a high temperature by the
heater, and electrons evaporate from the surface of the cathode. The accelerating
anode, with a small hole at its center, is maintained at a high potential V 1, of
the order of 1 to 20 kV, relative to the cathode. This potential difference gives
rise to an electric field directed from right to left in the region between the
accelerating anode and the cathode. Elections passing through the hole in the
anode from an arrow beam and travel with constant horizontal velocity from the
anode to the fluorescent screen. The area where the electrons strike the screen
glows brightly. The control grid regulates the number of electrons that reach the
anode and hence the brightness of the grid regulates the number of electrons
that reach the anode and hence the brightness of the spot on the screen. The
focusing anode ensures that electrons leaving the cathode in slightly different
directions are focused down to a narrow beam and all arrive at the same spot
on the screen. The assembly of cathode, control grid, focusing anode, and
accelerating electrode is called electron gun.
10 | P a g e
www.gradeup.co
The beam of electrons passes between two pairs of deflection plates. An electric
field between the second pair divert them vertically. If no diverting fields are
present, the electrons travel in a straight line from the hole in the accelerating
anode to the center of the screen, where they produce a bright spot.
The electron gun fixed at the base plate of the CRT focuses electron beam on
the CRT plate which is coated with phosphor bronze. The electron beam form
the gun sequentially scans every pixel of the raster. In the process the beam
hits a pixel and the phosphor dot of the pixel gets excited. As the electron beam
moves to the immediate next dot, the currently excited dot starts emitting light
energy in order to come back to its original static state. As 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 redrawn the picture
repeatedly by quickly directing the electron beam back over the same points.
This type of display is a refresh CRT.
The normal CTR can generate images of only single colour due to limitations of
its phosphor. A colour CRT device uses a multilayer phosphor and achieves
clolour control by modulating a normally constant parameter, namely the beam
accelerating potential. The screen is coated with a layer of green phosphor over
which a layer of red phosphor is deposited. When a low potential electron beam
strikes the screen only there red phosphor is excited thus producing a red trace.
A higher velocity beam will penetrate into the green phosphor increasing the
green component of the light output.
By varying the beam potential different combinations of red and green light can
produce a limited range of colour such as orange, yellow etc. the speed of the
electrons, and hence the screen colour at any point, is controlled by the beam-
11 | P a g e
www.gradeup.co
acceleration voltage. Beam penetration has been an inexpensive way to produce
colour in random-scan monitors, but only four colours are possible and quality of
pictures is not a good as with other methods.
Disadvantage: the main problem arises at the time of switching colours, when
the beam-accelerating potential needs to be changed by significant amounts in
order to prevent smear and flicker of the image. The hardware of the software
must be designed to introduce adequate delays between colour changes, so that
there is time for voltage to settle. So biggest disadvantage is that change of
colour takes time which doesn’t suit interactive graphics at all.
To prevent frequent delays and consequent flicker all the red elements of the
picture should be displayed first, then the accelerating potential can be changed
to display toe tallow elements and so on through all the different colours.
The process are used in raster-scan systems (including colour TV) because they
produce a much wider range of colour than the beam penetration method. It has
three phosphor colour dots at each pixel position. One phosphor dot emits a red
light, another emits a green light, and the third emits a blue light. The CRT has
three electron guns, one for each colour dot, and a shadow-mask grid just behind
the phosphor coated screen. The stream of electrons produced by the CRT’s
cathode reaches the phosphor-coated faceplate; it encounters the shadow mask,
a sheet of metal engraved with a pattern of holes. The mask is positioned in the
glass funnel of the CRT during manufacture and the phosphor is coated on the
screen so the screen so that electrons coming from the red, green and blue gun
positions only land on the appropriate phosphor.
12 | P a g e
www.gradeup.co
Stray electrons strike it and are absorbed by it, generating a great deal of heat,
which in turn causes the metal to expand. To allow flatter CRT’s to be made,
the metal most commonly used now for shadow masks is invar, an alloy of iron
and nickel. The metal dimensions when heat is applied. In reality, its dimensions
are not completely invariable and the buildup of heat in a shadow mask can let
to a form of distortion known as doming, where the center of the mask bulges
towards the faceplate slightly.
The original CRT, developed in the late 50’s and early 60’s created charts and
pictures line by line on the tube surface in any (random) order or direction given,
in a vectorial fashion. The electron beam was moved along the particular direction
and for the particular length of the line is specified. For this reason the type of
device was known as vector calligraphic or stroke. For example we want a line
connecting point A with point B on the vector graphics display, we simply drive
the beam deflection circuitry, which will cause beam to go directly from point A
to B.
13 | P a g e
www.gradeup.co
If we want to move the beam from point A to point B without showing a line
between points, we can blank the beam as we move. It thus random scan display
generates the image by drawing a set of random straight lines much in the same
way one might move a pencil over a piece of draw an image-drawing strokes
from one point o another, one line at a time.
There are of course no bit planes containing mapped pixel values in vector
system. The display buffer memory contains a set of line drawing commands
along with end point coordinates in a display list or display list or display program
created by a graphics package. The display processing unit (DPU) executes each
command during every refresh cycle and feeds the vector generator with digital
x, y and ∆x, ∆y values. The vector generator converts the digital signals into
equivalent analog deflection voltages. This causes the electron beam to move to
the start point or from the start point to the end point of a line or vector.
Therefore, the beam sweep does not follow any fixed pattern, the direction is
arbitrary as dictated by the display commands.
It is a synonym for “matrix” therefore a raster scan CRT scans a matrix with
electron beam. In a raster-scan system, the electron beam is wept across the
screen, one row at a time from top to bottom. As the electron beam moves
across each row, the beam intensity turned on and off to create a pattern of
illuminated spots. Picture definition contained in a memory area called the refresh
buffer or frame buffer. It carry the group of intensity values for all the screen
points. The stored intensity values are retrieved from frame buffer and displayed
on the screen one row (beam line) at a time. Every screen point is referred to
as a pixel. Every pixel on the screen can be specified by its row and column
number. Thus by specifying row and column number we can specify the pixel
position on the screen.
14 | P a g e
www.gradeup.co
The capability of a raster-scan system to store intensity information for each
screen point makes it will suited for the realistic display of scenes containing
subtle shading and colour patterns.
The difference between raster and random display is that raster display gives a
realistic image. It generally have higher resolution than raster systems. It produce
smooth line drawing because the CRT beam directly follows the line path. A
raster system produces Jagged lines that are plotted as the point sets.
Both in the raster scan and random scan system the screen image is maintained
(flicker free) by redrawing or refreshing the screen many times per second many
times per second by cycling through the picture data stored in the refresh buffer.
15 | P a g e
www.gradeup.co
A direct-view storage tube (DVST) gives the alternative method of maintaining
the screen image. It uses the storage grid which stores the picture information
as a charge distribution just behind the phosphor-coated screen. Figure shows
the diagram of a DVST.
a. Primary gun
b. Flood gun
A primary gun contains the picture pattern and flood gun keep the picture display.
There is no refresh buffer, the images are created by drawing vectors or line
segments with a relatively slow-moving electron beam. The beam is planned not
to produce directly on phosphor but on a fine wire mesh (called storage mesh)
coated with dielectric and mounted just behind the screen. A pattern of positive
charge is deposited on the grid, and this pattern is transferred to the phosphor
coated screen by a continuous flood of electrons emanating from a separate
flood gun.
The DVST contains also a second grid just behind the storage mesh, that is
called collector. The main purpose of collector is to smooth out the follow of
flood electrons. These electrons pass through the collector at short velocity and
are attracted to the positively charged portions of the storage mesh but repelled
16 | P a g e
www.gradeup.co
by the rest. Electrons not hold off by the storage mesh pass right through it and
strike the phosphor.
Advantage of DVST
Disadvantage of DVST
1. They do not showed colors and are available with single level of line
intensity.
2. Deleting needs removal of charge on the storage grid. Thus erasing and
redrawing process takes several seconds.
3. Selective or part deleting of screen is not possible.
4. Delete screen produces unpleasant flash over the entire screen surface
which prevents its use of dynamic graphics applications.
5. It has bad contrast as a result of the comparatively short accelerating
potential applied to the flood electrons.
6. The presentation of DVST is some what inferior to the refresh CRT.
FLAT-PANEL DISPLAY
A number display methods are in use that is designed to reduce the depth of
the CRT display caused by the length of the tube. These devices are known as
flat panel displays. These types of flat panel displays commonly in use with
17 | P a g e
www.gradeup.co
computer systems are liquid crystal displays (LCD’s), gas plasma displays
(GPD’s) and electroluminescent display (ELDs).
The screen of flat panel displays made up of pairs of electrodes. Every pair of
electrodes is used to generate one picture element.
It refers to a class of video devices that have reduced volume, weight and power
requirements compared to a CRT. They are thinner than CRT and we can hang
them on walls or wear them on our wrists. Current uses of these are in small
TV monitors, calculators, laptop computers etc. there are two types of flat panel
displays:
a. Emissive displays
b. Non-emissive displays
Emissive displays: It displays (emitters) are devices that convert electrical energy
into light. Plasma panels, light emitting diodes are examples of displays.
They are commonly used in small systems such a s calculators and portable
laptop computers. It produce a picture by passing polarized light from the
surroundings or from an internal light source through a liquid-crystal material that
can be aligned to either block or transmit the light.
They were first discovered in the late 19 th century by the Austrain botanist,
Fredrich Reintzer, and the term “liquid crystal” itself was coined shortly afterwards
by German physicist, Otto Lehmann.
18 | P a g e
www.gradeup.co
They are almost transparent substances, exhibiting the properties of both solid
and liquid matter.
It uses an electron gun to bombard electrons over a glass tube coated with
phosphor, which glows when struck by the electron beam. While in LCDs, liquid
crystals sandwiched between thin polarized sheets are used. This setup allows
LCDs to be sleeker and less heavier than CRT. They consume 1/3rd of the power
of CRT. They also emit lesser front of their PCs, then it’s better to use LCD
monitors. There is one small drawback in LCD monitors. The viewing angle of
most LCD monitors is only 160o, so if we try to view the monitor from the sides,
we may not be able to see anything.
INTERACTIVE DEVICES
KEYBOARD
It is primary input device for entering text and numbers. It is simple device
consists of about 100 keys each of which sends different codes to the CPU. It
was one of the first peripheral to be used with PCs, and it is still the most
common. T hey are designed for the input of text and characters and also to
control the operation of a computer.
Standard keyboards
The number of keyboard differs from the original standard of 101 keys to the
104 key windows keyboards. There are five pars of standard keyboard:
19 | P a g e
www.gradeup.co
THE MOUSE
It is a small pointer-held box used to position the screen cursor. Another process
for detecting mouse motion is with an optical sensor. It is moved over a special
mouse pad that has a grid of horizontal and vertical lines. The optical sensor
detects movement across the lines in the grid.
1. Mechanical mouse
2. Optical mouse
It offers two main benefits. It lets us position the cursor anywhere on the screen
quickly without using the cursor movement keys. We simply move the pointer to
the on screen position we want and press the mouser button, the cursors appears
at that position. Second, instead of forcing us to type or issue commands from
the keyboard, the mouse-based operating systems let us choose commands fro
easy to use menus and dialog box.
20 | P a g e
www.gradeup.co
are used on laps or on small work surfaces that have no space for a mouse.
Trackballs comes in different models.
It is a two dimensional positioning device whereas space ball provides six degree
of freedom. Unlike the trackball, a space ball does not actually move. Strain
gauges measure the amount of pressure applied to the space ball to provide
input for spatial positioning and orientation as the ball is pushed or pulled in
various directions. Space balls are used for three-dimensional positioning and
selection operations in virtual-reality systems, modelling, animation, CAD and
other applications.
TRACKPADS OR TOUCHPADS
It is a stationary pointing device that many people find less tiring to use than a
mouse or trackball. The motion of a finger across a small touch-sensitive surface
is translated into pointer movement on the computer screen.
JOYSTICK
Similar to the trackball and mouse, the joystick consists, or a vertical lever (called
the stick) which can be swing around moving the cursor on the screen. Most
joystick select screen positions with actual stick movement. Others respond to
pressure on the stick.
The distance that the stick is moved in any direction from its centre position
corresponds to screen cursor movement in that direction. Potentiometers mounted
at the base of the joystick measure the amount of movement, and springs return
the stick to the centre position when it is released.
In any joystick, optical sensors are used instead of analog potentiometer to read
stick movement digitally. One of the biggest additions to the world of joysticks is
force feedback technology. On using a force feedback (also called haptic
21 | P a g e
www.gradeup.co
feedback) joystick if we are shooting a machine gun in an action game, the stick
would vibrate in our hands or if we crashed our plane in a flight in an action
game, the stick would vibrate in our hands or if we crashed our plane in a flight
simulator, the stick would push back suddenly which means the stick moves in
conjunction with on screen actions.
TOUCH-SCREEN
LIGHT PEN
It is pointing device shaped like a pen and is connected to the computer. The
tip of the light pen contains a light-sensitive element (photoelectric cell) which,
when placed against the screen, detects the light from the screen enabling the
computer to identify the location of the pen on the screen.
Unlike other devices which have associated hardware to track the device and
determine x and y values, the light pen needs software support (same kind of
tracking program). A light pen can work with any CRT based monitor, but not
with LCD screen, projectors or other display devices.
22 | P a g e
www.gradeup.co
The light pen actually works by sensing the sudden small change in brightness
of a point on the screen when the electron gun refreshers that spot. By noting
exactly where the scanning has reached at that moment, the x, y position of the
pen can be resolved. The pen position is updated on very refresh of the screen.
DATA GLOVE
It is an interface device that uses position tracking sensors and fiber optic strands
running down each finger and connected to a compatible computer, the movement
of the hand and fingers are displayed live on the computer monitor which in turn
allows the user to virtually touch an object displayed in the same monitor. With
the object animated it would appear that the user (wearing the data glove) can
pick up an object and do things with it just as he would do with a real object.
In modern data glove devices, tactile sensors are used to provide the amount of
pressure or force the gingers or hands are exerting even though the user is not
actually touching anything. Thus data glove is an agent to transport the user to
virtual reality.
The input from the glove can be used to position or manipulate objects in a
virtual scene. Thus by wearing the data glove a user can grasp, move and rotate
objects and then release them.
VOICE SYSTEM
It is a sophisticated input device that accepts voice or speech input from the
user and transforms it to digital data that can be used to trigger graphic operations
or enter data in specific fields. Later when a voice command is given by the
same operator, the systems searches for a frequency-pattern match in the
dictionary and if found the corresponding action is triggered.
SCANNER
23 | P a g e
www.gradeup.co
In computing, It is a device that optically scans images, printed text, handwriting,
or an object, and converts it to a digital image.
HARDCOPY DEVICES
Monitor display is good for the creation, checking and modification of image but
for further analysis, design documentation and presentation purposes, hardcopy
in the form of printed and plotted output on paper is an absolute necessity.
24 | P a g e
www.gradeup.co
pins out in any combination. By pushing out pins in various combinations the
print head can create alphanumeric characters.
When pushed out from the cluster protruding pins ends strike a ribbon, which is
held in place between the print head and the paper. When the pins strike the
ribbon, they press ink from the ribbon onto the paper. The print head normally
print along very raster row of the printer paper and the colour of print is the
colour of the ink of the ribbon. Thus, a dot matrix printer forms a character by
creating s series of dots.
The more pins that print head contains, the higher the printer’s resolution. The
lowest dot matrix printers have only 9 pins and the highest resolution printer
have 24 pins.
The speed this is measured in characters per second (CPS). The slowest dot
matrix printers create 50 to 70 characters per second and the fastest printer
more than 500 cps.
Line printer: It is a special type of impact printer. It works like a dot matrix
printer but uses a special wide print head that can print an entire line of text at
one time.
The technology is usually both faster and less expensive than lesser printer. It
has its use in medium volume accounting and other large business applications,
where print volume and speed is a priority over quality. Line printers do not offer
high resolution but are incredibly fast; the faster can print 3,000 lines of text per
minute.
25 | P a g e
www.gradeup.co
Ink-Jet Printer: It is a non-impact printer that places extremely small droplets of
ink into paper to create an image. The dots sprayed on paper are extremely
small (usually between 50 and 60 microns in diameter) and are positioned very
precisely with resolutions of up to 1440 × 720 dpi. The dots can have different
colour combined together to create photo-quality image compared to laser printers,
the operating cost of an ink-jet printer is relatively low. Many ink-jet printers use
one cartridge for colour printing and a separate black only cartridge for black-
and white printing. This feature saves money by reserving coloured ink only for
colour printing.
The core of an inkjet printer is the print head that contain a series of nozzles
that are used to spray drops of ink. The ink is contained in ink cartridges. A
stepper motor moves the print head assembly (print head and ink cartridges)
back and forth across the paper. The mechanical operation of the printer is
controlled by a small circuit board containing a microprocessor and memory.
Colour inkjet printers have four ink nozzles: Cyan (blue), magnetic (red), yellow
and black. For this reason, they are often known as CMYK printers. Notice that
the colours are different from the primary additive colour (red, green and blue)
used in monitors printed colour is the result of light source. Consequently, cyan,
magneta, yellow and black are sometimes called subtractive colours and colour
printing is sometimes called four-colour printing.
Laser Printer: As the name implies, a laser is at the heart of these printers. A
CPU and memory are build into the printer to the printer to interpret the data
that it receives from the computer and to control the laser. The result is a
complicated piece of equipment that uses technology similar to that in
photocopies.
26 | P a g e
www.gradeup.co
As the electron gun in a monitor can target any pixel, the laser in a laser printer
can aim at any point on a drum, creating an electrical charge. Toner, which is
composed of small particles of ink, sticks to the drum in the places the laser
has charged. With pressure and heat, the toner is moved off the drum onto the
paper. The amount of memory that laser printers hold determines the speed at
which documents are printed.
27 | P a g e
www.gradeup.co
28 | P a g e