Вы находитесь на странице: 1из 43

COMPUTER GRAPHICS

2/9/17
Koushik Dutta
Department of Computer Science
Asutosh College, Kolkata
koushik.it.22@gmail.com
1
COMPUTER GRAPHICS
Producing pictures or images using a computer.

2/9/17
2
WHAT IS COMPUTER GRAPHIGS

Computer graphics is an art of drawing pictures on

2/9/17
computer screens with the help of programming. It
involves computations, creation, and manipulation of
data.

In other words, computer graphics is a rendering


tool for the generation and manipulation of images.

3
OUTLINE

Overview of Graphics Systems


Image Basics

2/9/17
Graphics Hardware
Input
Describing something to the computer
Computation
Computing what we want to draw
Output
Final representation

4
APPLICATION

Display of Information

2/9/17
Design

Simulation

Computer Art

Entertainment

5
COMPUTER GRAPHICS IS ABOUT
ANIMATION (FILMS)

2/9/17
6
GAMES ARE VERY IMPORTANT IN
COMPUTER GRAPHICS

2/9/17
7
MEDICAL IMAGING IS ANOTHER
DRIVING FORCE

2/9/17
8
COMPUTER AIDED DESIGN TOOL

2/9/17
9
COMPUTER ART
Graphics for Artist

2/9/17
10
SCIENTIFIC VISUALISATION

2/9/17
11
DATA VISUALIZATION
Charts and Graphs

2/9/17
12
SIMULATION

Computer-Generated Models of Physical, Financial


and Economic Systems for Educational Aids

2/9/17
13
MAIN THEME

Imaging

2/9/17
Representing 2D images
Modeling
Representing 3D objects
Rendering
Constructing 2D images from 3D models
Animation
Simulating changes over time

14
IMAGING

2/9/17
Warping

Metamorphosis

Non-Photorealistic Rendering

15
WARPING

2/9/17
16
METAMORPHOSIS(MORPHING)

2/9/17
Image 0 Warp
Warp 0

Image
Image 1 Warp
Warp 11

Result
Result

17
METAMORPHOSIS(MORPHING)

2/9/17
Image 0 Warp
Warp 0

Image
Image 1 Warp
Warp 11

Result
Result

18
METAMORPHOSIS(MORPHING)

2/9/17
19
POLYGON MORPHING

2/9/17
20
POLYGON MORPHING

2/9/17
21
NON-PHOTO REALISTIC
RENDERING

2/9/17
22
MODELLING
Shape Description & Design

2/9/17
23
RENDERING
Simulating Behavior of Lights & Image Formation

2/9/17
24
ANIMATION
Motion Representation & Control

2/9/17
25
GRAPHICS PIPELINE
o Graphics processes generally execute sequentially
o Pipelining the process means dividing it into

2/9/17
stages
o Especially when rendering in real-time, different
hardware resources are assigned for each stage
There are three stages
Application Stage
Geometry Stage
Rasterization Stage

26
APPLICATION STAGE
Entirely done in software by the CPU
Read Data

2/9/17
the world geometry database,
Users input by mice, trackballs, trackers, or sensing gloves
In response to the users input, the application stage
change the view or scene

27
GEOMETRY STAGE

Modelling: shapes

2/9/17
Model Transformation

Transformation: viewing

Hidden Surface Elimination


Rasterization
Stage
Shading: reflection and lighting

28
PREPARING SHAPE MODELS

Designed by polygons, parametric curves/surfaces, implicit


surfaces and etc.

2/9/17
Defined in its own coordinate system

29
MODEL TRANSFORMATION
Objects put into the scene by applying translation, scaling and
rotation

2/9/17
Linear transformation called homogeneous transformation is
used
The location of all the vertices are updated by this
transformation

30
PERSPECTIVE PROJECTION
We want to create a picture of the scene viewed from the camera

2/9/17
We apply a perspective transformation to convert the 3D coordinates to
2D coordinates of the screen
Objects far away appear smaller, closer objects appear bigger

31
HIDDEN SURFACE REMOVAL
Objects occluded by other objects must not be drawn

2/9/17
32
SHADING
Now we need to decide the colour of each pixels taking into
account the objects colour, lighting condition and the camera
position

2/9/17
point light source

Object

33
SHADING : CONSTANT SHADING -
AMBIENT
Objects colours by its own colour

2/9/17
34
SHADING : FLAT SHADING
Objects coloured based on its own colour and the lighting condition
One colour for one face

2/9/17
35
SHADING : GOURAUD SHADING
Lighting calculation per vertex, No specular highlights

2/9/17
36
SHAPES BY POLYNOMIAL
SURFACES

2/9/17
37
SPECULAR HIGHLIGHTS ADDED
Light perfectly reflected in a mirror-like way

2/9/17
38
PHONG SHADING
Use interpolation technique for shading.

2/9/17
39
RASTERIZATION STAGE

Geometry Stage
Rasterization and Sampling

2/9/17
Texture Mapping

Image Composition

Intensity and Colour Quantization

Framebuffer/Display

40
RASTERIZATION
Converts the vertex information output by the geometry
pipeline into pixel information needed by the video display

2/9/17
Aliasing: distortion artifacts produced when representing
a high-resolution signal at a lower resolution.
Anti-aliasing : technique to remove aliasing

41
ANTI-ALIASING

2/9/17
Aliased polygons
(jagged edges) Anti-aliased polygons
42
TEXTURE MAPPING

2/9/17
43

Вам также может понравиться