Computer Graphics CH 1
Computer Graphics CH 1
1.1
1.1
Lecture 1
Introduction to Computer Graphics
what is computer graphics?
• Computer graphics also often means the whole
field of study that involves these tools and the
pictures they produce.
3
So, what is computer graphics?
Modeling
• Taking the real and turning
it into the virtual.
• Explaining real world or
fantastic objects using
mathematics.
• If the image does not exist
in real life, a blueprint is
drawn by an artist.
• A wire frame is the
simplest form of model.
4
So, what is computer graphics?
Rendering
• Drawing the Image
• Color
• Lighting
• Shading
• Surface Texture
• Shadows
• Reflection and Transparency
• Intersection
5
So, what is computer graphics?
Animation
• Controlling the
movement of objects.
• Laws of Physics
• Biomechanics/
Kinesiology
• Lip Synch
• Special Effects
6
Introduction to Computer Graphics
Computer Graphics (CG) is an area of computer
science and engineering that plays an important
role in almost every application of computer
software. For example:
1.1
1.1
What is computer graphic
Computer graphics is the art and science of
creating images by:
•Programming the geometry and appearance of
the contents of the images,
11
Presentation Options
• Animation: A sequence of frames proceeds at a
particular rate while the user watches with delight;
(exciting, as in such animated movies as The
Incredibles® and Shrek® )
• Interactive Program: In an interactive graphics
experience, the user controls the flow from one
frame to another using an input device such as a
mouse or keyboard in a manner that was
unpredictable at the time the program was written.
This can delight the eye. A computer game is a
familiar case of an interactive graphics presentation.
(delightful!)
12
The work of the programmer is
• Develop appropriate representations for the
geometric objects of the images.
• Assemble these objects into an appropriate
geometric space.
• Specify how the scene is to be viewed and
how it will be displayed on the graphic device.
• Define some animation for the image.
14
Computer Graphics Tools (2)
• Software tools: the operating system, editor,
compiler, and debugger you commonly use.
– Graphics routines: e.g., functions to draw a simple
line or circle (or characters such as G).
– Functions to manage windows with pull-down
menus, input, and dialog boxes.
– Functions to allow the programmer to set up a
camera in 3D coordinate system and take
snapshots of objects.
15
Device Independent Graphics
• Device independent graphics libraries that
allow the programmer to use a common set of
functions within an application, and to run the
same application on a variety of systems and
displays are available.
• OpenGL is such a library, and is the tool we
shall use in this book. The OpenGL way of
creating graphics is used widely in both
academia and industry.
16
Computer Graphics API’s
• API’s (Application Programming Interface) is a set
of tools that allow a programmer to work in an
oriented application area.
• Allow the programmer to design applications
using the concepts of the area without having
to deal with the details of the computer
system.
• Graphic API’s is a set of tools that allow a
programmer to write applications that include
the use of interactive computer graphics
without dealing with system details for tasks
such as window handling and interactions.
Computer Graphics and Image
Processing
• Computer graphics create pictures and images based
on some description, or model, in a computer.
• Image processing improves or alters images that
were created elsewhere.
– Processing can remove noise from an image, enhance its
contrast, sharpen its edges, and fix its colors.
– Software routines can search for certain features in an
image, and highlight them to make them more noticeable
or understandable.
18
Why do we use computer graphics
CG’s are used to create images for:
•Science (scientific visualization, explanations to
the public).
•Entertainment (movies, video games, special
effects).
•Creative work (art, interactive installations).
•Commercial purposes (advertising,
communication, product design).
•General communication (animated weather
displays, information graphics).
Why do we use computer graphics
GC can solve a lot of problems:
•Identifying a problem.
•Addressing the problem by building the model.
•Identifying a way to represent the problem
geometrically.
•Creating an image from that geometry so that
the problem can be seen visually.
•Use the image to understand the problem or the
model and to try to understand a possible
solution.
Why do we use computer graphics
Computer Graphics Applications
•Computer Aided Design
•Presentation of graphics
•Computer Art
•Entertainment
•Visualization
•Image Processing
•GUI
Computer Graphics Applications
Computer Aided Design (CAD)
•CAD methods are now routinely used in the design of
buildings, automobiles, aircraft, watercraft, spacecraft,
computers, textiles, and many, many other products.
•Medicine
model and study physical functions, to design
artificial limbs, and to plan and practice surgery.
Computer Graphics Applications
• Graphical User Interface (GUI)
Volume Visualization
• Areas of different colors immediately inform a
physician about the health of each part of the
brain.
32
Displaying Mathematical Functions
• E.g., Mathematica®
33
Graphics applications
• Art, publicity
• Scientific visualization
34
Graphics applications
• Education and training
• User interfaces
35
Graphics applications
36
Graphics applications
• CAD
• Geographical info
37
Graphics applications
38
Graphics applications
39
Graphics applications
40
Graphics applications
41
Graphics applications
• Video Games
42
Major Points of Computer Graphics
Major Points of Computer Graphics
Major Points of Computer Graphics
Exercises 1
• What is the computer graphics?
• What can the programmer do in CG’s?
• How can we use CG’s in solving Problems?
• What is meant by Computer Graphics API’s?
• Why do we use computer graphics?
• What is the most common computer graphics
applications?
• Summarize the great variety of topics that
make up the study of computer graphics?