Chapter One ----Introduction to Computer Graphics (2)
Chapter One ----Introduction to Computer Graphics (2)
Chapter One:
Introduction to Computer Graphics
rocket groot
gru
artistic - focus on creativity ans aesthetics scientific-focus on accutacy and visualtion of dat
- ex-digital art, animation, visual effefcts ex medical images , scientific simulations, enfgineering
desigind]s
Frame Buffer
Contd..
1) Frame Buffer
The images that are to be displayed are stored in a frame buffer in the form
of matrix of intensity values.
The frame buffer contains the image stored in binary form as a matrix of
0’s and 1’s which represent the pixel. 0 indicates the darkness and 1
indicates the image.
The Frame Buffer holds the set of intensity values for all the screen
points.
The intensity values stored in a Frame Buffer are retrieved and painted on a
screen one row at a time. This row is called as scan line.
2) Display Controller
The Display Controller passes the contents of frame buffer to the T.V.
Monitor.
Display Controller reads successive bytes of data from the frame buffer &
then converts 0’s and 1’s into the corresponding video signal.
These signals are fed to the T.V. Monitor.
3) T.V. Monitor
The T.V. Monitor then produces black and white pattern on the screen.
The frame Buffer contents are to be modified, in order to represent the new
pattern of pixels or if some changes are to be made on the displayed
picture.
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.
Non-Interactive / 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.
GRAPHICS AREAS
The following major areas of computer graphics are:
creating 3d model to represent real world objects
Modeling deals with the mathematical specification of
shape and appearance properties in a way that can be
stored on the computer. For example, a coffee mug might
be described as a set of ordered 3D points along with some
interpolation rule to connect the points and a reflection
model that describes how light interacts with the mug.
generation of images from 3d model
Rendering is a term inherited from art and deals with the
creation of shaded images from 3D computer models.
Animation is a technique to create an illusion of motion
through sequences of images. Animation uses modeling
and rendering but adds the key issue of movement over
time, which is not usually dealt with in basic modeling and
rendering.
illution of motion through sequence of image
uses both modeling and rendering but adds movement
Contd..
There are many other areas that involve computer graphics.
User interaction deals with the interface between input devices such as
mice and tablets, the application, feedback to the user in imagery, and
other sensory feedback.
immmurese user into a 3d virtual world
Virtual reality attempts to immerse the user into a 3D virtual world.
This typically requires at least stereo graphics and response to head
motion. For true virtual reality, sound and force feedback should be
provided as well.
to understand complect info
Visualization attempts to give users insight into complex information
via visual display.
manuplation 2d images
Image processing deals with the manipulation of 2D images and is
used in both the fields of graphics and vision.
to create mesuerd 3d modles
3D scanning uses range-finding technology to create measured 3D
models. Such models are useful for creating rich visual imagery, and
the processing of such models often requires graphics algorithms.
Computational photography is the use of computer graphics,
computer vision, and image processing methods to enable new ways of
photographically capturing objects, scenes, and environments.
new way to photgraphically capture objects
Application of Computer Graphics
Almost any field can make some use of computer
graphics, but the major consumers of computer
graphics technology include the following
industries:
Video games increasingly use sophisticated 3D
models and rendering algorithms.
Cartoons are often rendered directly from 3D
models. Many traditional 2D cartoons use
backgrounds rendered from 3D models, which
allows a continuously moving viewpoint without
huge amounts of artist time.
38 Chapter One: Introdction to Computer Graphics 31/03/2025
Cont’d…
Visual effects inuse
films
almost all types of computer graphics
technology. Almost every modern film uses digital
compositing to superimpose backgrounds with separately
filmed foregrounds. Many films also use 3D modeling and
animation to create synthetic environments, objects, and even
characters that most viewers will never suspect are not real.
Animated films use many of the same techniques that are
used for visual effects, but without necessarily aiming for
images that look real.
to design parts
CAD/CAM stands for computer-aided design and computer-
aided manufacturing. These fields use computer technology to
design parts and products on the computer and then, using
these virtual designs, to guide the manufacturing process. For
example, many mechanical parts are designed in a 3D
computer modeling package and then automatically produced
Chapter One: Introdction to Computer Graphics
39 31/03/2025
on a computer-controlled milling device.
Cont’d…
accurate vode gameing like flight simulation to train pilots
Simulation can be thought of as accurate video gaming.
For example, a flight simulator uses sophisticated 3D
graphics to simulate the experience of flying an airplane.
Such simulations can be extremely useful for initial training
in safety-critical domains such as driving, and for scenario
training for experienced users such as specific fire-fighting
situations that are too costly or dangerous to create
physically.
Cont’d…
package translates commands into a display file.The display
processor reads the display file and refreshes the screen.The image is
redrawn during every refresh cycle.
Graphic Input Devices
Summary
➢ Computer graphics is the study of generating and manipulating
images using computers.
➢ In CG, we create, process and manipulate models of real world
objects
➢ It’s used in various engineering and scientific fields for
visualization, simulation and problem solving
➢ Interactive computer graphics is in which a user controls
appearance of graphics using a control mechanism (using some
input mechanism)
➢ The images in computer can be constructed by manipulating
points, lines and simple shapes
➢ Generally vectors
Syllabus
➢ Transformation
➢ Applying translation, scaling and rotation to
an object
➢ Viewing and Camera
➢ Viewing objects from many position and
perspectives
➢ Lighting
➢ Images are all about light and we will see
implementation of light here
➢ Curves and Surfaces
➢ Drawing curved surfaces
Syllabus - Programming
➢ Computer graphics is combination of Math and
Programming
➢ Mostly the Math is Linear Algebra
➢ OpenGL 3.0 or greater will be used as Graphics Library
➢ We will be implementing using Python 2.7
➢ What we will not learn
➢ Game Engines like Unity and PyGame
➢ 3DS Max or Blender
➢ Aftereffect or other Graphics Software
Syllabus – Reading
➢ We will not have a single book, instead we will use many books,
websites, tutorials
➢ Books
➢ Learn OpenGL - An offline transcript of learnopengl.com Joey de Vries
➢ OpenGL Programming 8th Edition by Dave Shreiner, Graham Sellers,
John Kessenich, Bill Licea-Kane
➢ Mathematical Structures for Computer Graphics by Steven J. Janke
➢ Computer Graphics Through OpenGL by Sumantah Guha
➢ NumPy Tutorial
Syllabus – Issues
➢ Sadly all books and other materials are written with C++
developers in mind
➢ Don’t Panic
➢ OpenGL Library uses “python wrapper” which has exactly same
functions, classes, variables and programming methodology for
python just like the C++ ones
➢ It shouldn’t be that hard to read the C++ code by now, thanks to
Java ☺
➢ It shouldn’t be that hard to change C++ code to Python ☺
Syllabus – Issues