SlideShare a Scribd company logo
1 of 66
Computer Graphics
Dr.A.G.Thakur &
Prof.D.P.Bhaskar
Sanjivani College of Engineering, Kopargaon
SPPU Pune
BY
• Transformations
Translation, Rotation, Scaling and Reflection.
• Homogenous Representation(HR)
• Concatenated Transformation(CT)
• Inverse Transformations.
• Mapping of Geometric Models
• Projections: Orthographic and Isometric.
Definition: Manipulation of size, shape and
location of the object .
Repositions the item in the Database.
Representation of an object
(Points ,Lines, Surfaces and Solids)
Transformation of object
Computer Graphics
Transformations
TrianglePoint Line
2D-Representation:Point MatrixCG
Transformation Routines
1. Translation/ Move
2. Rotation
3. Scaling
4. Reflection/Mirror
5. Shearing
Translation
Matrix Form
Addition process
Rotation
Matrix Form
P’
Multiplication process
Scaling
Multiplication process
Reflection
Multiplication process
Multiplication process
Reflection
Multiplication process
Shear
Transformation Matrix
[P’]=[T]+[P]
[P’]=[S]*[P]
Inverse translation T1 Rotating R Translation T2
[P’]=[T2*R*T1]*[P] [P’]=[CT]*[P]
Rotation@ point(m , n)
Homogeneous Representation[HR]
Concatenation of Transformations [CT]
Multiplication of all different transformation routines.
Inverse translation T1 Scaling S Translation T2
[P’]=[T2*S*T1]*[P]
[P’]=[CT]*[P]
Scaling @ point(m , n)
Homogeneous Representation[HR]
Homogeneous Representation[HR]
Translation transformations : Addition process
Other transformations :Multiplication process.
As translation is of additive type, that can’t be taken in
multiplication.
Solution: Homogeneous Representation
In HR form
Point vertex in HR form
e.g Rotation
Inverse translation T1 Scaling S Translation T2
[P’]=[T2*S*T1]*[P]
[P’]=[CT]*[P]
Scaling @ point(m , n)
Inverse translation T1 Rotating R Translation T2
[P’]=[T2*R*T1]*[P][P’]=[CT]*[P]
Rotation@ point(m , n)
Mirror@ Arbitrary line y=mx + c
[P’]=[T2*R2*MX*R*T1]*[P]
[P’]=[CT]*[P]
1) Inverse translation [T1]
Point matrix [P]
2) Scaling [S]
Sx = Sy = 0.5
3) Forward Translation[T2]
Concatenation Matrix
Point of scaled triangle
Rotation of square
Point matrix
Translation CG on origin
Rotate @ origin
Translation to required point
Concatenation matrix
New point matrix
Mapping of Geometric Models
MCS: Model/World/
Global/Cartesian CS (x’, y’)
Geometric data is stored wrt MCS
UCS: User/Local/Working CS (x , y)
Convenient for user
• Mapping between MCS & UCS Between (x,y) and (x’ , y’)
• Mapping Done by transformation
Problems
The coordinates of three vertices of triangle ABC in
working coordinate system [WCS] are A (3, 2), B (7, 2)
and C (5, 6) wrt the model coordinate system [MCS] of
the software.
The coordinates of origin of WCS are (6, 4). Axes of WCS
are at 300 in CCW wrt the axes of MCS.
Determine the coordinates of the vertices of triangle ABC
in MCS.
• The rectangle ABCD has the length of edge AB as 6
units and is inclined to the horizontal axis by 300 .The
other edge of rectangle is 4 units.
• In world coordinate system the coordinates of are A
are (3, 4) then determine coordinates of B, C and D in
user coordinate system and world coordinate system.
• To determine the user coordinate system, the edge
AB can be considered as one of the axis with point A
as the origin.
3 Dimensional Transformations
Translation













1000
100
010
001
z
y
x
t
t
t
T
Point, P=
Rotation Rotation@ Z-axis [On X-Y Plane]
























 













1
*
1000
0100
00cossin
00sincos
1
'
'
'
Z
Y
X
Z
Y
X


Projection of Geometric models
• Orthographic projection
• Isometric projection.
Main transformation Matrix
Front view matrix (z=0)
Top view matrix (y=0)
RH side view matrix (x=0)
Orthographic Matrices
Isometric View on 2D plane
Plane of Projection ( X-Y)
Computer Graphics
Computer Graphics
Computer Graphics

More Related Content

What's hot

Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
Mohammad Sadiq
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
Mani Kanth
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
Mohd Arif
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewing
Mohd Arif
 

What's hot (20)

Parallel projection
Parallel projectionParallel projection
Parallel projection
 
2D transformation (Computer Graphics)
2D transformation (Computer Graphics)2D transformation (Computer Graphics)
2D transformation (Computer Graphics)
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
Cyrus beck line clipping algorithm
Cyrus beck line clipping algorithmCyrus beck line clipping algorithm
Cyrus beck line clipping algorithm
 
Graphics software and standards
Graphics software and standardsGraphics software and standards
Graphics software and standards
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Curve and Surface
Curve and SurfaceCurve and Surface
Curve and Surface
 
Bezier curve computer graphics
Bezier curve computer graphics Bezier curve computer graphics
Bezier curve computer graphics
 
Solid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representationSolid modeling-Sweep Representation and B-representation
Solid modeling-Sweep Representation and B-representation
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
 
Boundary fill algm
Boundary fill algmBoundary fill algm
Boundary fill algm
 
2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)2d/3D transformations in computer graphics(Computer graphics Tutorials)
2d/3D transformations in computer graphics(Computer graphics Tutorials)
 
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 2 By Tekendra Nath Yogi
 
UNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLINGUNIT 2- GEOMETRIC MODELLING
UNIT 2- GEOMETRIC MODELLING
 
Two dimensional viewing
Two dimensional viewingTwo dimensional viewing
Two dimensional viewing
 
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath YogiB. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
B. SC CSIT Computer Graphics Unit 3 By Tekendra Nath Yogi
 

Similar to Computer Graphics

GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
Debjit Doira
 
Part 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptxPart 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptx
Khalil Alhatab
 
Part 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptxPart 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptx
Khalil Alhatab
 
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
CSCJournals
 
Matrix transformation
Matrix transformationMatrix transformation
Matrix transformation
mstf mstf
 

Similar to Computer Graphics (20)

Point Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D ReconstructionPoint Cloud Segmentation for 3D Reconstruction
Point Cloud Segmentation for 3D Reconstruction
 
INTRODUCTION TO COMPUTER AIDED DESIGN & MANUFACTURING
INTRODUCTION TO COMPUTER AIDED DESIGN & MANUFACTURINGINTRODUCTION TO COMPUTER AIDED DESIGN & MANUFACTURING
INTRODUCTION TO COMPUTER AIDED DESIGN & MANUFACTURING
 
Geometric model & curve
Geometric model & curveGeometric model & curve
Geometric model & curve
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
 
Part 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptxPart 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptx
 
Lecture 9-online
Lecture 9-onlineLecture 9-online
Lecture 9-online
 
Lecture Summary : Camera Projection
Lecture Summary : Camera Projection Lecture Summary : Camera Projection
Lecture Summary : Camera Projection
 
Introduction to Deformable Registration.pdf
Introduction to Deformable Registration.pdfIntroduction to Deformable Registration.pdf
Introduction to Deformable Registration.pdf
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
5 geometric modeling
5 geometric modeling5 geometric modeling
5 geometric modeling
 
5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria
 
Part 2- Transformation.pptx
Part 2- Transformation.pptxPart 2- Transformation.pptx
Part 2- Transformation.pptx
 
Part 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptxPart 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptx
 
Homogeneous representation in geometric transformation
Homogeneous representation in geometric transformation Homogeneous representation in geometric transformation
Homogeneous representation in geometric transformation
 
5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf
 
Applications of Linear Algebra in term of computer science
Applications of Linear Algebra in term of computer scienceApplications of Linear Algebra in term of computer science
Applications of Linear Algebra in term of computer science
 
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
Performance Comparison of Image Retrieval Using Fractional Coefficients of Tr...
 
Matrix transformation
Matrix transformationMatrix transformation
Matrix transformation
 
Introduction to Real Time Rendering
Introduction to Real Time RenderingIntroduction to Real Time Rendering
Introduction to Real Time Rendering
 

More from Dhiraj Bhaskar (12)

Numericam Methods using Matlab.pdf
Numericam Methods using Matlab.pdfNumericam Methods using Matlab.pdf
Numericam Methods using Matlab.pdf
 
4.pdf
4.pdf4.pdf
4.pdf
 
3.pdf
3.pdf3.pdf
3.pdf
 
1.pdf
1.pdf1.pdf
1.pdf
 
I C Engine components design
I C Engine components designI C Engine components design
I C Engine components design
 
Optimum design
Optimum designOptimum design
Optimum design
 
Pressure vessel
Pressure vesselPressure vessel
Pressure vessel
 
Thin and Thick Cylinders
Thin and Thick CylindersThin and Thick Cylinders
Thin and Thick Cylinders
 
3
33
3
 
2
22
2
 
1
11
1
 
MACHINE TOOL GEAR BOX
MACHINE TOOL GEAR BOXMACHINE TOOL GEAR BOX
MACHINE TOOL GEAR BOX
 

Recently uploaded

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 

Recently uploaded (20)

(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 

Computer Graphics