Computer Graphics
Computer Graphics
COMPUTER
GRAPHICS
IES COLLEGE OF ENGINEERING
Adri Jovin J.J.
Assistant Professor
Department of Information Technology
SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY
OUTLINE
Presentation Graphics
Computer Art
Entertainment
10
Visualization
11
Image Processing
12
13
14
15
Architecture
16
17
Architecture
18
19
20
21
Input Devices
22
Trackball
23
Space ball
24
Joystick
25
Image Scanner
26
Touch Panel
27
Light Pen
28
29
y m.x c
y 2 y1
m
x 2 x1
y
x
m
c y1 m x1
y mx
30
DDA Algorithm
Digital Differential Analyzer
Consider positive slope and the slope
is less than or equal to 1.
We sample at unit x interval
y k 1 y k m
31
y k 1 y k m
32
33
2D Transformation - Translation
34
2D Transformation - Translation
P P T
35
2D Transformation - Rotation
P R.P
cos
R
sin
sin
cos
36
sx
x
y 0
0
.
sy
P S .P
37
2D Transformation Differential
Scaling
38
2D Transformation Reflection
1 0 0
0 1 0
0 0 1
39
2D Transformation Shear
1 sh x
0
1
0
0
x x sh x . y
y y
40
Composite 2D Transformation
41
Line Clipping
42
Line Clipping
43
Polygon Clipping
44
45
3D Display Methods
Parallel Projection
Perspective Projection
Depth Cueing
Visible Line and Surface Identification
46
Parallel Projection
47
Perspective Projection
48
Depth Cueing
49
50
Workstation
Transformation
Device
Coordinates
Viewing and
Projection
Transformation
Projection
Coordinates
Modeling
Transformation
World
Coordinates
Modeling
Coordinates
3D Graphic Packages
51
3D Object Representations
Boundary representations (B-reps)
describe a three-dimensional object as a set
of surfaces that separate the object interior
from the environment.
Space-partitioning representations
used to describe interior properties, by
partitioning the spatial region containing an
object into a set of small, non-overlapping,
contiguous solids (usually cubes).
52
Polygon Surfaces
most commonly used boundary presentation
set of surface polygons enclose the object
interior
Used in most graphics systems
simplifies and speeds up the surface rendering
and display of objects
53
Polygon Tables
54
Plane Equations
Ax + By + Cz + D = 0, where (x,y,z) is any point
on the plane.
1 y1
A 1 y2
1 y3
x1
C x2
x3
z1
z2
z3
y1 1
y2 1
y3 1
x1 1 z1
B x2 1 z 2
x3 1 z 3
x1
D x2
y1
y2
z1
z2
x3
y3
z3
55
Polygon Meshes
56
Quadric Surfaces
Second Degree equations
Sphere
Ellipsoid
57
58
Super Quadrics
Super ellipse
59
Super Quadrics
Superellipsoid
60
Blobby Objects
Metaball Model
61
Spline Representations
Interpolation Model
Approximation Model
62
Parametric Continuity
Zero-order
Means simply that the curve meets
First order
The first derivatives of two adjoining curve functions are equal (or)
the tangents are shared
Second order
Both the first order and the second order derivatives of two
adjoining curve functions are equal
63
Bezier Surfaces
64
65
B-Spline surfaces
66
NURBS
Non-uniform Rational B-Spline
Use of non-uniform knot-vector
representations for constructing
rational B-splines
67
Color Models
68
69
70
71
72
73
74
75
Animations
76
77
Storyboard
Storyboard is an outline of the action
Defines the motion sequence as a set of
basic events that are to take place
78
Object Definition
Object definition is given for each participant in
the action
Basic shapes, such as polygons or splines
Associated movements for each object are
specified along with the shape.
79
Keyframe
Keyframe is a detailed drawing of the scene at a
certain time in the animation sequence
Each object is positioned according to the time
for that frame
80
In-betweens
In-betweens are the intermediate frames
between the key frames
Determined by the media to be used to display
the animation
Film : 24 fps
Graphics Terminals : 30 to 60 fps
81
Other Tasks
Motion Verification
Editing and Production
Synchronization of Sound Track
82
83
Raster Animations
On raster systems, we can generate real-time
animation in limited applications using raster
operations.
Simple 2D/ 3D transformations
Color Table Transformation
84
Key-frame Systems
Morphing
Transformation of object shapes from one form to another
85
Morphing
86
Morphing
87
88
89
90
91
OpenGL
Developed by Silicon Graphics in early 90s
Most widely-used open graphics standard in
the world
Supports both 2D and 3D Graphics APIs
92
OpenGL (Contd..)
OpenGL applications use the window
systems window, input, and event
mechanism
GLU supports quadrics, NURBS, complex
polygons, matrix utilities, and more
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Thank you!!!
109
???