SlideShare a Scribd company logo
3D TRANSFORMATION
(Rotation)
By:
Arvind Kumar
Assistant Professor
(Vidya College of Engineering)
3D Rotation
By: Arvind Kumar
3D
About the Coordinate-Axes
–X-axis rotation
–Y-axis rotation
–Z-axis rotation
Composite 3D Rotations
–Rotation about an axis that is parallel to one
of the coordinate axes
–Rotation about an arbitrary axis
3D
3D Rotation Coordinate axis
By: Arvind Kumar
3D
About X-Axis
3D






































11000
0cossin0
0sincos0
0001
1
'
'
'
z
y
x
z
y
x


z
y
x
3D Rotation Coordinate axis
By: Arvind Kumar
3D
About Y-Axis
3D
z
y
x






































11000
0cos0sin
0010
0sin0cos
1
'
'
'
z
y
x
z
y
x


3D Rotation Coordinate axis
By: Arvind Kumar
3D
About Z-Axis
3D
z
y
x























 













11000
0100
00cossin
00sincos
1
'
'
'
z
y
x
z
y
x


3D Rotation about an parallel axis
By: Arvind Kumar
3D
Steps to be follows:
–Translate the object so that the rotation axis
coincides with the parallel coordinate axis
–Rotation about that axis.
–Translate Back so that the rotation axis is moved
back to its original position
x
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
Steps to be Follows
1. Translate (x1, y1, z1) to the
origin
2. Rotate (x’2, y’2, z’2) on to the z
axis
3. Rotate the object around the z-
axis
4. Rotate the axis to the original
orientation
5. Translate the rotation axis to
the original position
Rxy-1
T-1
Rxy
T
           TRRRRRTR  xyzyx
111 

Rz
(x2,y2,z2)
(x1,y1,z1)
x
z
y
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
Step 1. Translation
















1000
100
010
001
1
1
1
tz
ty
tx
T
(x2,y2,z2)
(x1,y1,z1)
x
z
y
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
Step 2. Rotation about x-axis
 




























1000
0//0
0//0
0001
1000
0cossin0
0sincos0
0001
dcdb
dbdc
x


R
(0,b,c)

d
c
cb
c
d
b
cb
b






22
22
cos
sin
y
z
(a,b,c)
x
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
• Step 3. Rotation about y axis
22
222222
cos,sin
cbd
dacbal
l
d
l
a


 
 











 












 

1000
0/0/
0010
0/0/
1000
0cos0sin
0010
0sin0cos
ldla
lald
y


R
(a,b,c)

l
d
x
y
z
(a,0,d)
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
Step 4. Rotatation about z axis
 











 

1000
0100
00cossin
00sincos


zR

l
y
x
z
Rotation about an arbitrary Axis
By: Arvind Kumar
3D
Step 5. Apply the reverse transformation to
place the axis back in its initial position
   










































1000
0cos0sin
0010
0sin0cos
1000
0cossin0
0sincos0
0001
1000
100
010
001
1
1
1
111





z
y
x
yx RRT
           TRRRRRTR  xyzyx
111 

y
l
l
z
x
Numerical
By: Arvind Kumar
3D
Q1. Find the new coordinates of a unit cube 90ᵒ rotated about
an axis defined by its endpoints A(2,1,0) and B(3,3,1).
Solution:
By: Arvind Kumar
3D
Step1. Translate point A to the origin
x
z
y
B’(1,2,1)















1000
0100
1010
2001
T
A’(0,0,0)
Solution:
By: Arvind Kumar
3D
Step2. Rotate axis A’B’ about the x axis by and
angle , until it lies on the xz plane
 


















1000
0
5
5
5
52
0
0
5
52
5
5
0
0001
xR
6121
5
5
5
1
cos
5
52
5
2
12
2
sin
222
22





l
x
z
y
l
B’(1,2,1)

Projected point
(0,2,1)
B”(1,0,5)
A’
Solution:
By: Arvind Kumar
3D
Step3. Rotate axis A’B’’ about the y axis, until it
coincides with the z axis.
 


















1000
0
6
30
0
6
6
0010
0
6
6
0
6
30
yR
6
30
6
5
cos
6
6
6
1
sin




x
z
y
l

B”(1,0,  5)
A’(0,0,5)
Solution:
By: Arvind Kumar
3D
Step4. Rotate the cube 90° about the z axis
 











 

1000
0100
0001
0010
90zR
           TRRRRRTR  xyzyx  
90111
Finally, Matrix about the arbitrary axis
Solution:
By: Arvind Kumar
3D
 











































































 














































1000
560.0167.0741.0650.0
151.1075.0667.0742.0
742.1983.0075.0166.0
1000
0100
1010
2001
1000
0
5
5
5
52
0
0
5
52
5
5
0
0001
1000
0
6
30
0
6
6
0010
0
6
6
0
6
30
1000
0100
0001
0010
1000
0
6
30
0
6
6
0010
0
6
6
0
6
30
1000
0
5
5
5
52
0
0
5
52
5
5
0
0001
1000
0100
1010
2001
R
Solution:
By: Arvind Kumar
3D
Step5. Multiplying R(θ) by the point matrix of the
original cube
     PRP  
 











































11111111
076.0091.0560.0726.0817.0650.0301.1467.1
483.0409.0151.1225.1184.0258.0484.0558.0
891.2909.1742.1725.2816.2834.1667.1650.2
11111111
10011001
00001111
11001100
1000
560.0167.0741.0650.0
151.1075.0667.0742.0
742.1983.0075.0166.0
P
3 d transformation   Rotation

More Related Content

What's hot

3D Transformation
3D Transformation 3D Transformation
3D Transformation
Mahmudul Hasan
 
Z buffer
Z bufferZ buffer
Z buffer
AmitBiswas99
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
Rajani Thite
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
SanthiNivas
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
LOKENDRA PRAJAPATI
 
Ellipses drawing algo.
Ellipses drawing algo.Ellipses drawing algo.
Ellipses drawing algo.Mohd Arif
 
Unit 3
Unit 3Unit 3
Unit 3
ypnrao
 
Mid-Point Cirle Drawing Algorithm
Mid-Point Cirle Drawing AlgorithmMid-Point Cirle Drawing Algorithm
Mid-Point Cirle Drawing AlgorithmNeha Kaurav
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
Somya Bagai
 
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
Tekendra Nath Yogi
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
SHIVANI SONI
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
Ankur Soni
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer Graphics
A. S. M. Shafi
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
Laxman Puri
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
nehrurevathy
 
computer graphics
computer graphicscomputer graphics
computer graphicsMegabi Mamo
 
Overview of Graphics System
Overview of Graphics SystemOverview of Graphics System
Overview of Graphics System
PrathimaBaliga
 

What's hot (20)

3D Transformation
3D Transformation 3D Transformation
3D Transformation
 
Z buffer
Z bufferZ buffer
Z buffer
 
Segments in Graphics
Segments in GraphicsSegments in Graphics
Segments in Graphics
 
4. THREE DIMENSIONAL DISPLAY METHODS
4.	THREE DIMENSIONAL DISPLAY METHODS4.	THREE DIMENSIONAL DISPLAY METHODS
4. THREE DIMENSIONAL DISPLAY METHODS
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
Ellipses drawing algo.
Ellipses drawing algo.Ellipses drawing algo.
Ellipses drawing algo.
 
Unit 3
Unit 3Unit 3
Unit 3
 
Mid-Point Cirle Drawing Algorithm
Mid-Point Cirle Drawing AlgorithmMid-Point Cirle Drawing Algorithm
Mid-Point Cirle Drawing Algorithm
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Illumination Models & Shading
Illumination Models & ShadingIllumination Models & Shading
Illumination Models & Shading
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
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
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 
Computer Graphics
Computer GraphicsComputer Graphics
Computer Graphics
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer Graphics
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
computer graphics
computer graphicscomputer graphics
computer graphics
 
Overview of Graphics System
Overview of Graphics SystemOverview of Graphics System
Overview of Graphics System
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 

Similar to 3 d transformation Rotation

3 d transformation reflection
3 d transformation   reflection3 d transformation   reflection
3 d transformation reflection
Arvind Kumar
 
3 D transformation translation, scaling
3 D transformation   translation, scaling3 D transformation   translation, scaling
3 D transformation translation, scaling
Arvind Kumar
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
University of Potsdam
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
Nareek
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
Ahammednayeem
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
sabbirantor
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
Ishan Parekh
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
Yogita Jain
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformation
japan vasani
 
Virtual reality
Virtual realityVirtual reality
Virtual reality
ReachLocal Services India
 
09transformation3d
09transformation3d09transformation3d
09transformation3dKetan Jani
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
HiteshJain007
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
Ratnadeepsinh Jadeja
 
computer graphic.pptx
computer graphic.pptxcomputer graphic.pptx
computer graphic.pptx
ujjwalmatoliya
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
Daffodil International University
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
Muhammed Afsal Villan
 
Ch03 ssm
Ch03 ssmCh03 ssm
Ch03 ssm
Marta Díaz
 
2D transformations
2D transformations2D transformations
2D transformations
vijaysharma1265
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
SwatiHans10
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
Susmita
 

Similar to 3 d transformation Rotation (20)

3 d transformation reflection
3 d transformation   reflection3 d transformation   reflection
3 d transformation reflection
 
3 D transformation translation, scaling
3 D transformation   translation, scaling3 D transformation   translation, scaling
3 D transformation translation, scaling
 
3d transformation computer graphics
3d transformation computer graphics 3d transformation computer graphics
3d transformation computer graphics
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
3D Geometric Transformations
3D Geometric Transformations3D Geometric Transformations
3D Geometric Transformations
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
Two dimensional geometric transformation
Two dimensional geometric transformationTwo dimensional geometric transformation
Two dimensional geometric transformation
 
Virtual reality
Virtual realityVirtual reality
Virtual reality
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
2.1. fundamental of computer graphics
2.1. fundamental of computer graphics2.1. fundamental of computer graphics
2.1. fundamental of computer graphics
 
computer graphic.pptx
computer graphic.pptxcomputer graphic.pptx
computer graphic.pptx
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
Ch03 ssm
Ch03 ssmCh03 ssm
Ch03 ssm
 
2D transformations
2D transformations2D transformations
2D transformations
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
 

More from Arvind Kumar

Bezier curve & B spline curve
Bezier curve  & B spline curveBezier curve  & B spline curve
Bezier curve & B spline curve
Arvind Kumar
 
3d Projection
3d Projection3d Projection
3d Projection
Arvind Kumar
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clipping
Arvind Kumar
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
Arvind Kumar
 
Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
Arvind Kumar
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
Arvind Kumar
 
data structure
data structuredata structure
data structure
Arvind Kumar
 
Data structure
Data  structureData  structure
Data structure
Arvind Kumar
 

More from Arvind Kumar (8)

Bezier curve & B spline curve
Bezier curve  & B spline curveBezier curve  & B spline curve
Bezier curve & B spline curve
 
3d Projection
3d Projection3d Projection
3d Projection
 
Curve and text clipping
Curve and text clippingCurve and text clipping
Curve and text clipping
 
Liang barsky Line Clipping Algorithm
Liang barsky Line Clipping AlgorithmLiang barsky Line Clipping Algorithm
Liang barsky Line Clipping Algorithm
 
Weiler atherton
Weiler athertonWeiler atherton
Weiler atherton
 
sutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clippingsutherland- Hodgeman Polygon clipping
sutherland- Hodgeman Polygon clipping
 
data structure
data structuredata structure
data structure
 
Data structure
Data  structureData  structure
Data structure
 

Recently uploaded

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
BrazilAccount1
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 

Recently uploaded (20)

Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
AP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specificAP LAB PPT.pdf ap lab ppt no title specific
AP LAB PPT.pdf ap lab ppt no title specific
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 

3 d transformation Rotation

  • 1. 3D TRANSFORMATION (Rotation) By: Arvind Kumar Assistant Professor (Vidya College of Engineering)
  • 2. 3D Rotation By: Arvind Kumar 3D About the Coordinate-Axes –X-axis rotation –Y-axis rotation –Z-axis rotation Composite 3D Rotations –Rotation about an axis that is parallel to one of the coordinate axes –Rotation about an arbitrary axis 3D
  • 3. 3D Rotation Coordinate axis By: Arvind Kumar 3D About X-Axis 3D                                       11000 0cossin0 0sincos0 0001 1 ' ' ' z y x z y x   z y x
  • 4. 3D Rotation Coordinate axis By: Arvind Kumar 3D About Y-Axis 3D z y x                                       11000 0cos0sin 0010 0sin0cos 1 ' ' ' z y x z y x  
  • 5. 3D Rotation Coordinate axis By: Arvind Kumar 3D About Z-Axis 3D z y x                                       11000 0100 00cossin 00sincos 1 ' ' ' z y x z y x  
  • 6. 3D Rotation about an parallel axis By: Arvind Kumar 3D Steps to be follows: –Translate the object so that the rotation axis coincides with the parallel coordinate axis –Rotation about that axis. –Translate Back so that the rotation axis is moved back to its original position x
  • 7. Rotation about an arbitrary Axis By: Arvind Kumar 3D Steps to be Follows 1. Translate (x1, y1, z1) to the origin 2. Rotate (x’2, y’2, z’2) on to the z axis 3. Rotate the object around the z- axis 4. Rotate the axis to the original orientation 5. Translate the rotation axis to the original position Rxy-1 T-1 Rxy T            TRRRRRTR  xyzyx 111   Rz (x2,y2,z2) (x1,y1,z1) x z y
  • 8. Rotation about an arbitrary Axis By: Arvind Kumar 3D Step 1. Translation                 1000 100 010 001 1 1 1 tz ty tx T (x2,y2,z2) (x1,y1,z1) x z y
  • 9. Rotation about an arbitrary Axis By: Arvind Kumar 3D Step 2. Rotation about x-axis                               1000 0//0 0//0 0001 1000 0cossin0 0sincos0 0001 dcdb dbdc x   R (0,b,c)  d c cb c d b cb b       22 22 cos sin y z (a,b,c) x
  • 10. Rotation about an arbitrary Axis By: Arvind Kumar 3D • Step 3. Rotation about y axis 22 222222 cos,sin cbd dacbal l d l a                                   1000 0/0/ 0010 0/0/ 1000 0cos0sin 0010 0sin0cos ldla lald y   R (a,b,c)  l d x y z (a,0,d)
  • 11. Rotation about an arbitrary Axis By: Arvind Kumar 3D Step 4. Rotatation about z axis                 1000 0100 00cossin 00sincos   zR  l y x z
  • 12. Rotation about an arbitrary Axis By: Arvind Kumar 3D Step 5. Apply the reverse transformation to place the axis back in its initial position                                               1000 0cos0sin 0010 0sin0cos 1000 0cossin0 0sincos0 0001 1000 100 010 001 1 1 1 111      z y x yx RRT            TRRRRRTR  xyzyx 111   y l l z x
  • 13. Numerical By: Arvind Kumar 3D Q1. Find the new coordinates of a unit cube 90ᵒ rotated about an axis defined by its endpoints A(2,1,0) and B(3,3,1).
  • 14. Solution: By: Arvind Kumar 3D Step1. Translate point A to the origin x z y B’(1,2,1)                1000 0100 1010 2001 T A’(0,0,0)
  • 15. Solution: By: Arvind Kumar 3D Step2. Rotate axis A’B’ about the x axis by and angle , until it lies on the xz plane                     1000 0 5 5 5 52 0 0 5 52 5 5 0 0001 xR 6121 5 5 5 1 cos 5 52 5 2 12 2 sin 222 22      l x z y l B’(1,2,1)  Projected point (0,2,1) B”(1,0,5) A’
  • 16. Solution: By: Arvind Kumar 3D Step3. Rotate axis A’B’’ about the y axis, until it coincides with the z axis.                     1000 0 6 30 0 6 6 0010 0 6 6 0 6 30 yR 6 30 6 5 cos 6 6 6 1 sin     x z y l  B”(1,0,  5) A’(0,0,5)
  • 17. Solution: By: Arvind Kumar 3D Step4. Rotate the cube 90° about the z axis                 1000 0100 0001 0010 90zR            TRRRRRTR  xyzyx   90111 Finally, Matrix about the arbitrary axis
  • 18. Solution: By: Arvind Kumar 3D                                                                                                                              1000 560.0167.0741.0650.0 151.1075.0667.0742.0 742.1983.0075.0166.0 1000 0100 1010 2001 1000 0 5 5 5 52 0 0 5 52 5 5 0 0001 1000 0 6 30 0 6 6 0010 0 6 6 0 6 30 1000 0100 0001 0010 1000 0 6 30 0 6 6 0010 0 6 6 0 6 30 1000 0 5 5 5 52 0 0 5 52 5 5 0 0001 1000 0100 1010 2001 R
  • 19. Solution: By: Arvind Kumar 3D Step5. Multiplying R(θ) by the point matrix of the original cube      PRP                                                11111111 076.0091.0560.0726.0817.0650.0301.1467.1 483.0409.0151.1225.1184.0258.0484.0558.0 891.2909.1742.1725.2816.2834.1667.1650.2 11111111 10011001 00001111 11001100 1000 560.0167.0741.0650.0 151.1075.0667.0742.0 742.1983.0075.0166.0 P