SlideShare a Scribd company logo
1 of 22
3D TRANSFORMATION
CONTENTS
 Transformation
 Types of transformation
 Why we use transformation
 3D Transformation
 3D Translation
 3D Rotation
 3D Scaling
 3D Reflection
 3D Shearing
TRANSFORMATION
 Transformations are a fundamental part of the computer
graphics. Transformations are the movement of the object in
Cartesian plane .
TYPES OF
TRANSFORMATION
 There are two types of transformation in computer graphics.
1) 2D transformation
2) 3D transformation
 Types of 2D and 3D transformation
1) Translation
2) Rotation
3) Scaling
4) Shearing
5) Mirror reflection
WHY WE USE
TRANSFORMATION
 Transformation are used to position objects , to shape object , to
change viewing positions , and even how something is viewed.
 In simple words transformation is used for
1) Modeling
2) viewing
3D TRANSFORMATION
 When the transformation takes place on a 3D plane .it is called
3D transformation.
 Generalize from 2D by including z coordinate
Straight forward for translation and scale, rotation more difficult
Homogeneous coordinates: 4 components
Transformation matrices: 4×4 elements












1000
z
y
x
tihg
tfed
tcba
3D TRANSLATION
 Moving of object is called translation.
 In 3 dimensional homogeneous coordinate representation , a
point is transformed from position P = ( x, y , z) to P’=( x’, y’,
z’)
 This can be written as:-
Using P’ = T . P









































11000
100
010
001
1
z
y
x
t
t
t
z
y
x
z
y
x
3D TRANSLATION
 The matrix representation is equivalent to the three equation.
x’=x+ tx , y’=y+ ty , z’=z+ tz
Where parameter tx , ty , tz are specifying translation distance for the
coordinate direction x , y , z are assigned any real value.
3D ROTATION
Where an object is to be rotated about an axis that is parallel to one
of the coordinate axis, we can obtain the desired rotation with
the following transformation sequence.
Coordinate axis rotation
Z- axis Rotation(Roll)
Y-axis Rotation(Yaw)
X-axis Rotation(Pitch)
COORDINATE AXIS
ROTATION
 Obtain rotations around other axes through cyclic permutation
of coordinate parameters:
xzyx 
X-AXIS ROTATION
The equation for X-axis rotation
x’ = x
y’ = y cosθ – z sinθ
z’ = y sinθ + z cosθ








































11000
0cossin0
0sincos0
0001
1
'
'
'
z
y
x
z
y
x
Y-AXIS ROTATION
The equation for Y-axis rotaion
x’ = x cosθ + z sinθ
y’ = y
z’ = z cosθ - x sinθ








































11000
0cos0sin
0010
0sin0cos
1
'
'
'
z
y
x
z
y
x
The equation for Y-axis rotaion
x’ = x cosθ – y sinθ
y’ = x sinθ + y cosθ
z’ = z
Z-AXIS ROTATION
























 













11000
0100
00cossin
00sincos
1
'
'
'
z
y
x
z
y
x


3D SCALING
 Changes the size of the object and repositions the object relative
to the coordinate origin.









































11000
000
000
000
1
z
y
x
s
s
s
z
y
x
z
y
x
3D SCALING
 The equations for scaling
x’ = x . sx
Ssx,sy,sz y’ = y . sy
z’ = z . sz
3D REFLECTION
 Reflection in computer graphics is used to emulate reflective
objects like mirrors and shiny surfaces
 Reflection may be an x-axis
y-axis , z-axis. and also in
the planes xy-plane,yz-plane , and
zx-plane.
Reflection relative to a given
Axis are equivalent to 180
Degree rotations
3D REFLECTION
 Reflection about x-axis:-
x’=x y’=-y z’=-z
1 0 0 0
0 -1 0 0
0 0 -1 0
0 0 0 1
Reflection about y-axis:-
y’=y x’=-x z’=-z
3D REFLECTION
 The matrix for reflection about y-axis:-
-1 0 0 0
0 1 0 0
0 0 -1 0
0 0 0 1
 Reflection about z-axis:-
x’=-x y’=-y z’=z
-1 0 0 0
0 -1 0 0
0 0 1 0
0 0 0 1
3D SHEARING
 Modify object shapes
 Useful for perspective projections
 When an object is viewed from different directions and at
different distances, the appearance of the object will be
different. Such view is called perspective view. Perspective
projections mimic what the human eyes see.
3D SHEARING
E.g. draw a cube (3D) on a screen (2D) Alter the values for x and y
by an amount proportional to the distance from zref
3D SHEARING
 Matrix for 3d shearing
 Where a and b can
Be assigned any real
Value.
Thank You

More Related Content

What's hot

HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTAhtesham Ullah khan
 
3D Transformation
3D Transformation3D Transformation
3D TransformationSwatiHans10
 
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
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformationsMohd Arif
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphicsSHIVANI SONI
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics FundamentalsMuhammed Afsal Villan
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformationMani Kanth
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformationSelvakumar Gna
 
Parallel projection
Parallel projectionParallel projection
Parallel projectionPrince Shahu
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer GraphicsKamal Acharya
 
2D Transformation
2D Transformation2D Transformation
2D TransformationShahDhruv21
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphicanku2266
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)RohitK71
 

What's hot (20)

HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPTHOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
HOMOGENEOUS CO-ORDINATES IN COMPUTER GRAPHICS PPT
 
Spline representations
Spline representationsSpline representations
Spline representations
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
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...
 
Depth Buffer Method
Depth Buffer MethodDepth Buffer Method
Depth Buffer Method
 
Video display devices
Video display devicesVideo display devices
Video display devices
 
3 d geometric transformations
3 d geometric transformations3 d geometric transformations
3 d geometric transformations
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
Color models
Color modelsColor models
Color models
 
Reflection transformation
Reflection transformationReflection transformation
Reflection transformation
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
Parallel projection
Parallel projectionParallel projection
Parallel projection
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Output primitives in Computer Graphics
Output primitives in Computer GraphicsOutput primitives in Computer Graphics
Output primitives in Computer Graphics
 
2D Transformation
2D Transformation2D Transformation
2D Transformation
 
Visible surface detection in computer graphic
Visible surface detection in computer graphicVisible surface detection in computer graphic
Visible surface detection in computer graphic
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)Computer graphics curves and surfaces (1)
Computer graphics curves and surfaces (1)
 

Viewers also liked

3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric TransformationsIshan Parekh
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)Amit Kapoor
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinatesTarun Gehlot
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNANDINI SHARMA
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformationsNareek
 
Homogeneous coordinate
Homogeneous coordinateHomogeneous coordinate
Homogeneous coordinateBed Dhakal
 
CS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingCS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingMark Kilgard
 
OpenGL Transformation
OpenGL TransformationOpenGL Transformation
OpenGL TransformationSandip Jadhav
 
Secrets of CryENGINE 3 Graphics Technology
Secrets of CryENGINE 3 Graphics TechnologySecrets of CryENGINE 3 Graphics Technology
Secrets of CryENGINE 3 Graphics TechnologyTiago Sousa
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics PrathimaBaliga
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics NotesGurpreet singh
 
Display devices CRT and LCD screen
Display devices CRT and LCD screenDisplay devices CRT and LCD screen
Display devices CRT and LCD screenManoj Harsule
 
3 d projections
3 d projections3 d projections
3 d projectionsMohd Arif
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devicesvinay arora
 
Video display device
Video display deviceVideo display device
Video display devicemissagrata
 

Viewers also liked (20)

3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
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)
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)2 d transformations by amit kumar (maimt)
2 d transformations by amit kumar (maimt)
 
2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates2 d transformations and homogeneous coordinates
2 d transformations and homogeneous coordinates
 
Notes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphicsNotes 2D-Transformation Unit 2 Computer graphics
Notes 2D-Transformation Unit 2 Computer graphics
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
Homogeneous coordinate
Homogeneous coordinateHomogeneous coordinate
Homogeneous coordinate
 
Projection Matrices
Projection MatricesProjection Matrices
Projection Matrices
 
CS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and CullingCS 354 Transformation, Clipping, and Culling
CS 354 Transformation, Clipping, and Culling
 
OpenGL Transformation
OpenGL TransformationOpenGL Transformation
OpenGL Transformation
 
3D transformation
3D transformation3D transformation
3D transformation
 
Secrets of CryENGINE 3 Graphics Technology
Secrets of CryENGINE 3 Graphics TechnologySecrets of CryENGINE 3 Graphics Technology
Secrets of CryENGINE 3 Graphics Technology
 
Introduction to Computer graphics
Introduction to Computer graphics Introduction to Computer graphics
Introduction to Computer graphics
 
Computer Graphics Notes
Computer Graphics NotesComputer Graphics Notes
Computer Graphics Notes
 
lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)lecture1 introduction to computer graphics(Computer graphics tutorials)
lecture1 introduction to computer graphics(Computer graphics tutorials)
 
Display devices CRT and LCD screen
Display devices CRT and LCD screenDisplay devices CRT and LCD screen
Display devices CRT and LCD screen
 
3 d projections
3 d projections3 d projections
3 d projections
 
CG - Display Devices
CG - Display DevicesCG - Display Devices
CG - Display Devices
 
Video display device
Video display deviceVideo display device
Video display device
 

Similar to 3d transformation computer graphics

3 d transformation
3 d transformation3 d transformation
3 d transformationMani Kanth
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewingYogita Jain
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformationsAmol Gaikwad
 
09transformation3d
09transformation3d09transformation3d
09transformation3dKetan Jani
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transformPatel Punit
 
Three dimensional graphics
Three dimensional graphicsThree dimensional graphics
Three dimensional graphicssonangrai
 
2d-transformation
2d-transformation2d-transformation
2d-transformationPooja Dixit
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformationsNareek
 
04transformation2d
04transformation2d04transformation2d
04transformation2dKetan Jani
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingManthan Kanani
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation9784
 

Similar to 3d transformation computer graphics (20)

3D Transformation
3D Transformation 3D Transformation
3D Transformation
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
2D transformations
2D transformations2D transformations
2D transformations
 
Virtual reality
Virtual realityVirtual reality
Virtual reality
 
Two dimentional transform
Two dimentional transformTwo dimentional transform
Two dimentional transform
 
Three dimensional graphics
Three dimensional graphicsThree dimensional graphics
Three dimensional graphics
 
computer graphic.pptx
computer graphic.pptxcomputer graphic.pptx
computer graphic.pptx
 
2d-transformation
2d-transformation2d-transformation
2d-transformation
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
Transforms UNIt 2
Transforms UNIt 2 Transforms UNIt 2
Transforms UNIt 2
 
04transformation2d
04transformation2d04transformation2d
04transformation2d
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearing
 
seminar on 2D transformation
seminar on 2D transformationseminar on 2D transformation
seminar on 2D transformation
 

More from University of Potsdam (20)

Computer fundamentals 01
Computer fundamentals 01Computer fundamentals 01
Computer fundamentals 01
 
Workshop on android apps development
Workshop on android apps developmentWorkshop on android apps development
Workshop on android apps development
 
Transparency and concurrency
Transparency and concurrencyTransparency and concurrency
Transparency and concurrency
 
Database System Architecture
Database System ArchitectureDatabase System Architecture
Database System Architecture
 
Functional dependency and normalization
Functional dependency and normalizationFunctional dependency and normalization
Functional dependency and normalization
 
indexing and hashing
indexing and hashingindexing and hashing
indexing and hashing
 
data recovery-raid
data recovery-raiddata recovery-raid
data recovery-raid
 
Query processing
Query processingQuery processing
Query processing
 
Machine Learning for Data Mining
Machine Learning for Data MiningMachine Learning for Data Mining
Machine Learning for Data Mining
 
Tree, function and graph
Tree, function and graphTree, function and graph
Tree, function and graph
 
Sonet
SonetSonet
Sonet
 
Sets in discrete mathematics
Sets in discrete mathematicsSets in discrete mathematics
Sets in discrete mathematics
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Series parallel ac rlc networks
Series parallel ac rlc networksSeries parallel ac rlc networks
Series parallel ac rlc networks
 
Series parallel ac networks
Series parallel ac networksSeries parallel ac networks
Series parallel ac networks
 
Relations
RelationsRelations
Relations
 
Relations
RelationsRelations
Relations
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Prim algorithm
Prim algorithmPrim algorithm
Prim algorithm
 

Recently uploaded

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 

Recently uploaded (20)

Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 

3d transformation computer graphics

  • 2. CONTENTS  Transformation  Types of transformation  Why we use transformation  3D Transformation  3D Translation  3D Rotation  3D Scaling  3D Reflection  3D Shearing
  • 3. TRANSFORMATION  Transformations are a fundamental part of the computer graphics. Transformations are the movement of the object in Cartesian plane .
  • 4. TYPES OF TRANSFORMATION  There are two types of transformation in computer graphics. 1) 2D transformation 2) 3D transformation  Types of 2D and 3D transformation 1) Translation 2) Rotation 3) Scaling 4) Shearing 5) Mirror reflection
  • 5. WHY WE USE TRANSFORMATION  Transformation are used to position objects , to shape object , to change viewing positions , and even how something is viewed.  In simple words transformation is used for 1) Modeling 2) viewing
  • 6. 3D TRANSFORMATION  When the transformation takes place on a 3D plane .it is called 3D transformation.  Generalize from 2D by including z coordinate Straight forward for translation and scale, rotation more difficult Homogeneous coordinates: 4 components Transformation matrices: 4×4 elements             1000 z y x tihg tfed tcba
  • 7. 3D TRANSLATION  Moving of object is called translation.  In 3 dimensional homogeneous coordinate representation , a point is transformed from position P = ( x, y , z) to P’=( x’, y’, z’)  This can be written as:- Using P’ = T . P                                          11000 100 010 001 1 z y x t t t z y x z y x
  • 8. 3D TRANSLATION  The matrix representation is equivalent to the three equation. x’=x+ tx , y’=y+ ty , z’=z+ tz Where parameter tx , ty , tz are specifying translation distance for the coordinate direction x , y , z are assigned any real value.
  • 9. 3D ROTATION Where an object is to be rotated about an axis that is parallel to one of the coordinate axis, we can obtain the desired rotation with the following transformation sequence. Coordinate axis rotation Z- axis Rotation(Roll) Y-axis Rotation(Yaw) X-axis Rotation(Pitch)
  • 10. COORDINATE AXIS ROTATION  Obtain rotations around other axes through cyclic permutation of coordinate parameters: xzyx 
  • 11. X-AXIS ROTATION The equation for X-axis rotation x’ = x y’ = y cosθ – z sinθ z’ = y sinθ + z cosθ                                         11000 0cossin0 0sincos0 0001 1 ' ' ' z y x z y x
  • 12. Y-AXIS ROTATION The equation for Y-axis rotaion x’ = x cosθ + z sinθ y’ = y z’ = z cosθ - x sinθ                                         11000 0cos0sin 0010 0sin0cos 1 ' ' ' z y x z y x
  • 13. The equation for Y-axis rotaion x’ = x cosθ – y sinθ y’ = x sinθ + y cosθ z’ = z Z-AXIS ROTATION                                        11000 0100 00cossin 00sincos 1 ' ' ' z y x z y x  
  • 14. 3D SCALING  Changes the size of the object and repositions the object relative to the coordinate origin.                                          11000 000 000 000 1 z y x s s s z y x z y x
  • 15. 3D SCALING  The equations for scaling x’ = x . sx Ssx,sy,sz y’ = y . sy z’ = z . sz
  • 16. 3D REFLECTION  Reflection in computer graphics is used to emulate reflective objects like mirrors and shiny surfaces  Reflection may be an x-axis y-axis , z-axis. and also in the planes xy-plane,yz-plane , and zx-plane. Reflection relative to a given Axis are equivalent to 180 Degree rotations
  • 17. 3D REFLECTION  Reflection about x-axis:- x’=x y’=-y z’=-z 1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 Reflection about y-axis:- y’=y x’=-x z’=-z
  • 18. 3D REFLECTION  The matrix for reflection about y-axis:- -1 0 0 0 0 1 0 0 0 0 -1 0 0 0 0 1  Reflection about z-axis:- x’=-x y’=-y z’=z -1 0 0 0 0 -1 0 0 0 0 1 0 0 0 0 1
  • 19. 3D SHEARING  Modify object shapes  Useful for perspective projections  When an object is viewed from different directions and at different distances, the appearance of the object will be different. Such view is called perspective view. Perspective projections mimic what the human eyes see.
  • 20. 3D SHEARING E.g. draw a cube (3D) on a screen (2D) Alter the values for x and y by an amount proportional to the distance from zref
  • 21. 3D SHEARING  Matrix for 3d shearing  Where a and b can Be assigned any real Value.