Ch. 1 Introduction of CG
Ch. 1 Introduction of CG
& Animation
By Simran Puri
Overview
• Computer graphics is an art of drawing pictures on computer
screens with the help of programming. It involves
computations, creation, and manipulation of data. In other
words, we can say that computer graphics is a rendering tool
for the generation and manipulation of images.
• Computer graphics is responsible for displaying art and image
data effectively and meaningfully to the consumer. It is also
used for processing image data received from the physical
world, such as photo and video content. Computer graphics
development has had a significant impact on many types of
media and has revolutionized animation, movies, advertising,
video games, and graphic design in general.
Overview
The term computer graphics has been used in a broad sense to
describe "almost everything on computers that is not text or sound".
[3]
Typically, the term computer graphics refers to several different
things:
• the representation and manipulation of image data by a computer
• the various technologies used to create and manipulate images
• methods for digitally synthesizing and manipulating visual
content, see study of computer graphics
Today, computer graphics is widespread. Such imagery is found in
and on television, newspapers, weather reports, and in a variety of
medical investigations and surgical procedures. A well-constructed
graph can present complex statistics in a form that is easier to
understand and interpret. In the media "such graphs are used to
illustrate papers, reports, theses", and other presentation material.[4]
Many tools have been developed to visualize data. Computer-generated imagery
can be categorized into several different types: two dimensional (2D), three
dimensional (3D), and animated graphics. As technology has improved,
3D computer graphics have become more common, but 2D computer graphics
are still widely used.
• Why computer graphics used?
Suppose a shoe manufacturing company want to show the sale of shoes for five
years. For this vast amount of information is to store. So a lot of time and
memory will be needed. This method will be tough to understand by a common
man. In this situation graphics is a better alternative. Graphics tools are charts
and graphs. Using graphs, data can be represented in pictorial form. A picture
can be understood easily just with a single look.
Interactive computer graphics work using the concept of two-way
communication between computer users. The computer will receive signals from
the input device, and the picture is modified accordingly. Picture will be changed
quickly when we apply command.
Applications of Computer Graphics
Computer graphics deals with creation, manipulation and storage
of different type of images and objects.
Some of the applications of computer graphics are:
• Computer Art:
Using computer graphics we can create fine and commercial
art which include animation packages, paint packages. These
packages provide facilities for designing object shapes and
specifying object motion. Cartoon drawing, paintings, logo
design can also be done.
• Computer Aided Drawing:
Designing of buildings, automobile, aircraft is done with the
help of computer aided drawing, this helps in providing
minute details to the drawing and producing more accurate
and sharp drawings with better specifications.
Applications
• Presentation Graphics:
For the preparation of reports or summarising the financial,
statistical, mathematical, scientific, economic data for research
reports, managerial reports, moreover creation of bar graphs,
pie charts, time chart, can be done using the tools present in
computer graphics.
• Entertainment:
Computer graphics finds a major part of its utility in the movie
industry and game industry. Used for creating motion pictures ,
music video, television shows, cartoon animation films. In the
game industry where focus and interactivity are the key
players, computer graphics helps in providing such features in
the efficient way.
Applications
• Education:
Computer generated models are extremely useful for teaching
huge number of concepts and fundamentals in an easy to
understand and learn manner. Using computer graphics many
educational models can be created through which more interest
can be generated among the students regarding the subject.
• Training:
Specialised system for training like simulators can be used for
training the candidates in a way that can be grasped in a short
span of time with better understanding. Creation of training
modules using computer graphics is simple and very useful.
Applications
• Visualisation:
Today the need of visualise things have increased drastically,
the need of visualisation can be seen in many advance
technologies , data visualisation helps in finding insights of the
data , to check and study the behaviour of processes around us
we need appropriate visualisation which can be achieved
through proper usage of computer graphics
• Image Processing:
Various kinds of photographs or images require editing in
order to be used in different places. Processing of existing
images into refined ones for better interpretation is one of the
many applications of computer graphics.
Applications
• Graphical User Interface:
The use of pictures, images, icons, pop-up menus, graphical
objects helps in creating a user friendly environment where
working is easy and pleasant, using computer graphics we can
create such an atmosphere where everything can be automated
and anyone can get the desired action performed in an easy
fashion.
These are some of the applications of computer graphics due to
which it’s popularity has increased to a huge extend and will keep
on increasing with the progress in technology.
Interactive and Passive Graphics
(a) Non-Interactive or Passive Computer Graphics:
In non-interactive computer graphics, the picture is produced on
the monitor, and the user does not have any controlled over the
image, i.e., the user cannot make any change in the rendered
image. One example of its Titles shown on T.V.
Non-interactive Graphics involves only one-way communication
between the computer and the user, User can see the produced
image, and he cannot make any change in the image.
(b) Interactive Computer Graphics:
In interactive Computer Graphics user have some controls over
the picture, i.e., the user can make any change in the produced
image. One example of it is the ping-pong game.
Interactive Computer Graphics require two-way communication
between the computer and the user. A User can see the image and
make any change by sending his command with an input device.
Advantages:
1. Higher Quality
2. More precise results or products
3. Greater Productivity
4. Lower analysis and design cost
5. Significantly enhances our ability to understand data and to
perceive trends.
• Properties of Video Monitor:
1. Persistence: Persistence is the duration of phosphorescence.
Different kinds of phosphors are available for use in CRT. Besides
color, a major difference between phosphor in their persistence how
they continue to emit light after the electron beam is removed.
2. Resolution: Use to describe the number of pixels that are used on
display image.
3. Aspect Ratio: It is the ratio of width to its height. Its measure is unit
in length or number of pixels.
Aspect Ratio =Width / height
Display Processor:
It is interpreter or piece of hardware that converts display processor code into
pictures. It is one of the four main parts of the display processor
Parts of Display Processor
1. Display File Memory
2. Display Processor
3. Display Generator
4. Display Console
Display File Memory: It is used for generation of the picture. It is used for
identification of graphic entities.
Display Controller:
5. It handles interrupt
6. It maintains timings
7. It is used for interpretation of instruction.
Display Generator:
8. It is used for the generation of character.
9. It is used for the generation of curves.
Display Console: It contains CRT, Light Pen, and Keyboard and deflection
system.
Display Devices:
The most commonly used display device is a video monitor. The
operation of most video monitors based on CRT (Cathode Ray
Tube). The following display devices are used:
• Refresh Cathode Ray Tube
• Random Scan and Raster Scan
• Color CRT Monitors
• Direct View Storage Tubes
• Flat Panel Display
• Lookup Table
Cathode Ray Tube (CRT):
CRT stands for Cathode Ray Tube. CRT is a technology used in
traditional computer monitors and televisions. The image on
CRT display is created by firing electrons from the back of the
tube of phosphorus located towards the front of the screen.
Once the electron heats the phosphorus, they light up, and they
are projected on a screen. The color you view on the screen is
produced by a blend of red, blue and green light.
Components of CRT:
1. Electron Gun: Electron gun consisting of a series of elements,
primarily a heating filament (heater) and a cathode. The electron gun
creates a source of electrons which are focused into a narrow beam
directed at the face of the CRT.
2. Control Electrode: It is used to turn the electron beam on and off.
3. Focusing system: It is used to create a clear picture by focusing the
electrons into a narrow beam.
4. Deflection Yoke: It is used to control the direction of the electron
beam. It creates an electric or magnetic field which will bend the electron
beam as it passes through the area. In a conventional CRT, the yoke is
linked to a sweep or scan generator. The deflection yoke which is
connected to the sweep generator creates a fluctuating electric or
magnetic potential.
5. Phosphorus-coated screen: The inside front surface of every CRT is
coated with phosphors. Phosphors glow when a high-energy electron
beam hits them. Phosphorescence is the term used to characterize the
light given off by a phosphor after it has been exposed to an electron
beam.
Working of Cathode Ray Tube
• The electron beam controls the working of Cathode Ray Tube.
The electron gun generates an electron beam of high intensity
when it is connected to high voltage. When the electron beam
emits from the electron gun it passes through a pair of
electrostatic and magnetic deflection coil which is on the neck
of the electron gun. These coils are responsible for the
horizontal and vertical movement of the beam. This beam falls
on the screen and creates phosphorescence. This is the working
of Cathode Ray Tube.
Random Scan and Raster Scan
Display:
Random Scan Display:
Random Scan System uses an electron beam which operates like
a pencil to create a line image on the CRT screen. The picture is
constructed out of a sequence of straight-line segments. Each
line segment is drawn on the screen by directing the beam to
move from one point on the screen to the next, where its x & y
coordinates define each point. After drawing the picture. The
system cycles back to the first line
and design all the lines of the image 30 to 60 time each second.
The process is shown in fig:
Random-scan monitors are also known as vector displays or
stroke-writing displays or calligraphic displays.
Advantages:
1. A CRT has the electron beam directed only to the parts of the screen where an
image is to be drawn.
2. Produce smooth line drawings.
3. High Resolution
Disadvantages:
4. Random-Scan monitors cannot display realistic shades scenes.
Raster Scan Display:
A Raster Scan Display is based on intensity control of pixels in the form of a
rectangular box called Raster on the screen. Information of on and off pixels is
stored in refresh buffer or Frame buffer. Televisions in our house are based on
Raster Scan Method. The raster scan system can store information of each pixel
position, so it is suitable for realistic display of objects. Raster Scan provides a
refresh rate of 60 to 80 frames per second.
Frame Buffer is also known as Raster or bit map. In Frame Buffer the positions are
called picture elements or pixels. Beam refreshing is of two types. First is
horizontal retracing and second is vertical retracing. When the beam starts from the
top left corner and reaches the bottom right scale, it will again return to the top left
side called at vertical retrace. Then it will again more horizontally from top to
bottom call as horizontal retracing shown in fig:
Types of Scanning or travelling of beam
in Raster Scan
1. Interlaced Scanning
2. Non-Interlaced Scanning
In Interlaced scanning, each horizontal line of the screen is traced from top to
bottom. Due to which fading of display of object may occur. This problem can
be solved by Non-Interlaced scanning. In this first of all odd numbered lines
are traced or visited by an electron beam, then in the next circle, even number
of lines are located.
For non-interlaced display refresh rate of 30 frames per second used. But it
gives flickers. For interlaced display refresh rate of 60 frames per second is
used.
Advantages:
3. Realistic image
4. Million Different colors to be generated
5. Shadow Scenes are possible.
Disadvantages:
6. Low Resolution
7. Expensive
Differentiate between Random and
Raster Scan Display:
Random Scan Raster Scan
1. It has high Resolution 1. Its resolution is low.
2. It is more expensive 2. It is less expensive
3. Any modification if needed is easy 3. Modification is tough