Professional Documents
Culture Documents
Chapter 1
Introduction to Interactive Computer Graphics
Brief History of Computer Graphics – 3D graphics Techniques and terminology – Common use
of Computer Graphics – Examples of application areas
Reference: Richard S. Wright et.el. OpenGL® SuperBible: Comprehensive Tutorial and Reference
1.1 Introduction
Graphics is the familiar word for all. Graphics means visual representation of
things that mean giving the visual representation of whatever you are thinking. Very
simple example for graphics is: which you are using in your daily life; visuals in mobile
phone and computer display. Why you have to study graphics as part of in your
curriculum. Graphics is the part of all computer software and applications. So can
conclude without graphics there is no computer software and application. So graphics
is important for computer science. One more thing computer is the one of the system for
graphics so it’s must for computer science.
Early people used drawings to communicate even before they started to speak
and write. Computer graphics is an art of drawing pictures, lines, charts, etc
using computer with the help of programming. Computer graphics is made up of
number of pixels. Pixel is the smallest graphical picture or unit represented on
the computer screen. Computer involves display, manipulation and storage of picture
and experimental data for proper visualization using computer. Typical graphic system
is consists of host computer with fast processor, large memory, frame buffer, input
devices, output devices and interface devices.
Interactive Computer Graphics involves a two way communication between
computer and user. Here the observer is given some control over the image by
providing the input by input devices. For example the video game controller of the ping
pong game. This helps him to signal his request to the computer. The computer on
receiving signals from the input device can modify the displayed picture appropriately.
To the user it appears that the picture is changing instantaneously in response to his
commands. User can give a series of commands, each one generating a graphical
response from the computer. In this way user can maintains a conversation, or dialogue,
with the computer.
Interactive computer graphics affects our lives in a number of indirect ways. For
example, it helps to train the pilots of our airplanes. We can create a flight simulator
which may help the pilots to get trained not in a real aircraft but on the grounds at the
control of the flight simulator. The flight simulator is a model of an aircraft flight deck,
containing all the usual controls and surrounded by screens on which we have the
projected computer generated views of the terrain visible on takeoff and landing
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
From the below diagram, you can understand the concept and framework of
graphics system. In the above figure left side: application model and application
program are belongs to the developer side. Software developers are developing the
programs and application. That programs and applications are running in the graphics
systems. Can get the output in devices like monitors and can give the input to the
system using input devices like keyboard.
Framework of Graphics
One small example for the graphics system: calculator application in computer.
That calculator application is programed and developed by the software developer.
That calculator application is running in the computer graphics system and it is
producing then the result based on the inputs.
Finally can conclude about computer graphics that computer graphics involves
display, manipulation and storage of pictures and experimental data for proper
visualization using a computer as a rendering tool
creation of, manipulation of, analysis of, and interaction with pictorial
representations of objects and data using computers
displays or animates real or imaginary objects from their computer-based
models
scientific study of techniques & methods for computer-generating images
or sequences of images (i.e., animations, movies)
Computer graphic is concerned with all aspects of producing pictures or images.
Also pictorial synthesis or real or imaginary objects from their computer based model
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
Going Electric
Paper as an output medium for computers is useful and persists today. Laser
printers and color inkjet printers have replaced crude ASCII art with crisp presentation
quality and photographic reproductions of artwork. Continuously using paper and ink
is wasteful of our natural resources, especially because most of the time we don’t really
need hard-copy output of calculations or database queries.
The cathode ray tube (CRT) was a tremendously useful addition to the computer.
The original computer monitors, CRTs were initially just video terminals that displayed
ASCII text. CRTs were perfectly capable of drawing points and lines as well as
alphabetic characters. Soon, other symbols and graphics began to supplement the
character terminal. Programmers used computers and their monitors to create graphics
that supplemented textual or tabular output. The first algorithms for creating lines and
curves were developed and published
The first computer graphics displayed on these terminals were two-dimensional,
or 2D. These flat lines, circles, and polygons were used to create graphics for a variety of
purpose. Graphs and plots could display scientific or statistical data in a way that tables
and figures could not.
Going 3D
The term three-dimensional or 3D means that an object being described or
displayed has three dimensions of measurement: width, height, and depth. An example
of a two-dimensional object is a piece of paper on your desk with a drawing or writing
on it, having no perceptible depth. A three-dimensional object is the can of soda. The
soft drink can is round (width and depth) and tall (height).
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
The first computer graphics no doubt appeared similar to what’s shown in the
below figure, here can see a simple three-dimensional cube drawn with 12 line
segments. What makes the cube look three-dimensional is perspective, or the angles
between the lines that lend the illusion of depth.
To truly see in 3D, need to view an object with both eyes or supply each eye with
separate and unique images of the object. Look at below Figure each eye receives a two-
dimensional image that is much like a temporary photograph displayed on each retina
These two images are slightly different because they are received at two different
angles. Then the brain combines these slightly different images to produce a single,
composite 3D picture in your head.
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
Rasterization
Filling in of the pixels between each vertex to make the lines is called
rasterization. It is the task of taking an image described in a vector graphics format
(shapes) and converting it into a raster image (pixels or dots) for output on a video
display or printer.
Shading
In computer graphics, shading refers to the process of altering the color of an
object/surface/polygon in the 3D scene, based on its angle to lights and its distance
from lights to create a photorealistic effect. Shading is performed during the rendering
process by a program called a shader.
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
Texture Mapping
Texture mapping is a graphic design process in which a two-dimensional (2-D)
surface, called a texture map, is "wrapped around" a three-dimensional (3-D) object. A
texture is simply a picture that we map to the surface of a triangle or polygon.
Blending
Fig shows the effects of blending. Blending allows mixing different colors
together. In the figure reflection effect is done simply by drawing the cube upside down
First. Then draw the floor blended over the top of it, followed by the right side up cube.
Now see the figure your brain just says, “a reflection.”
Presentation Graphics
Graphics supports for the report presentation and data presentation
Chapter 01 Introduction to Interactive Computer Graphics Computer Graphics CoSc3121
GUI
GUI is a type of user interface that allows users to interact with electronic
devices through graphical icons and visual indicators such as secondary notation,
instead of text-based user interfaces. Windows, frame, button, checkbox, list and
etc are the example of some GUI
Image Processing
It helps to modify and interpret the existing image. Manipulation of image
is divided into three categories:
Image Processing
Image Analysis
Image Understanding
Simulation and Training
Simulation is one of the main applications of computer graphics. It is
involved in engineering, education, medical, science, production etc.