You are on page 1of 30

Computer Graphics

Introduction to computer Graphics

Lecturer Maria Afnan, Dept. of CSE


What’s this course all about?

 Paint and Imaging packages (Adobe Photoshop)?


 Cad packages (AutoCAD)?
 Rendering packages (Lightscape)?
 Modelling packages (3D Studio MAX)?
 Animation packages (Digimation)?
 Graphics Modelling and Languages (RenderMan)?

No!
Lecturer Maria Afnan, Dept. of CSE
What’s this course all about?

 Graphics programming and algorithms


 Graphics data structures
 Colour and human vision
 Applied geometry, modelling and rendering

Lecturer Maria Afnan, Dept. of CSE


What is computer graphics?

 A broad and diverse field


 Computer science
 Design

 Process of creating computer generated imagery

Lecturer Maria Afnan, Dept. of CSE


Applications

 Entertainment
 Medical analysis
 Computer-aided design
 Scientific visualization
 Training
 Education
 E-commerce
 Computer art

Lecturer Maria Afnan, Dept. of CSE


Computer Graphics is about animation (films)
Lecturer Maria Afnan, Dept. of CSE
Games are very important in Computer Graphics

Lecturer Maria Afnan, Dept. of CSE


Medical Imaging
is another driving
force

Lecturer Maria Afnan, Dept. of CSE


Computer Aided Design

Lecturer Maria Afnan, Dept. of CSE


Scientific Visualization

NASA Releases New Collection of Hurricane Science Animations

Lecturer Maria Afnan, Dept. of CSE


Training

Lecturer Maria Afnan, Dept. of CSE


Education

Lecturer Maria Afnan, Dept. of CSE


Computer Art

Lecturer Maria Afnan, Dept. of CSE


Graphics Definitions

Point
 A location in space, 2D or 3D
 Sometimes denotes one pixel

Line
 straight path connecting two points
 infinitesimal width, consistent density
 beginning and end on points

Lecturer Maria Afnan, Dept. of CSE


Graphics Definitions

Vertex
 point in 3D

Edge
 line in 3D connecting two vertices

Polygon/Face/Facet
 arbitrary shape formed by connected vertices
 fundamental unit of 3D computer graphics

Lecturer Maria Afnan, Dept. of CSE


Graphics Pipelines

 Graphics processes generally execute sequentially


 Typical ‘pipeline’ model
 There are two ‘graphics’ pipelines
 The Geometry or 3D pipeline
 The Imaging or 2D pipeline

Lecturer Maria Afnan, Dept. of CSE


An example through the pipeline…

We are trying to represent a scene

Lecturer Maria Afnan, Dept. of CSE


Modelling

Lecturer Maria Afnan, Dept. of CSE


Perspective View

Lecturer Maria Afnan, Dept. of CSE


Depth Cue

Lecturer Maria Afnan, Dept. of CSE


Hidden Line Removal – add colour

Lecturer Maria Afnan, Dept. of CSE


Constant Shading - Ambient

Lecturer Maria Afnan, Dept. of CSE


Faceted Shading - Flat

No specular highlights! Lecturer Maria Afnan, Dept. of CSE


Specular highlights added

Lecturer Maria Afnan, Dept. of CSE


Phong shading

Lecturer Maria Afnan, Dept. of CSE


Texture mapping

Lecturer Maria Afnan, Dept. of CSE


Reflections & shadows

Lecturer Maria Afnan, Dept. of CSE


Geometry Pipeline

Lecturer Maria Afnan, Dept. of CSE


Imaging Pipeline

Lecturer Maria Afnan, Dept. of CSE


Thank you

You might also like