SlideShare ist ein Scribd-Unternehmen logo
1 von 24
 Right handed space consistent with math.
 Left handed space suitable to screens.
 To transform from right to left negate the z values.
 There are five steps for reflection about an arbitrary
point in space:
1. Translate to the origin by –(x0,y0,z0).
2. Rotate (x’,y’,z’) about x-axis.
3. Rotate (x’,y’,z’) about y-axis.
4. Rotate about z-axis.
5. Inverse step 2 By changing the sin sign.
6. Inverse step 3 By changing the sin sign.
7. Inverse step 1 By changing the tx, ty and tz sign.
 EX: Find the new coordinate of a unit cube 90 degree
rotated about an axis defined by its end points A(2,1,0)
and B(3,3,1).
 Step 1: Translate to origin
 a= 3-2= 1
 b= 3-1= 2
 c= 1-0= 1
1 0 0 -2
0 1 0 -1
0 0 1 0
0 0 0 1
 Step 2: Rotation about x-axis
 D= 𝑏2 + 𝑐2 = 22 + 12 = 5
 Sin= b/d= 2/ 5
 Cos= c/d= 1/ 5
1 0 0
0
0 1/ 5 -2/ 5
1
0 2/ 5 1/ 5
1
0 0 0
1
 Step 3: Rotation about y-axis
 L= 𝑎2 + 𝑏2 + 𝑐2 = 6
 Sin= a/L= 1/ 6
 Cos= d/L= 5/ 6
5/ 6 0 -1/ 6 0
0 1 0 0
1/ 6 0 5/ 6 0
0 0 0 1
 Step 4: Rotation about z-axis by 90 degree
0 -1 0 0
1 0 0 0
0 0 1 0
0 0 0 1
 Step 5: Inverse Rotation about x-axis
1 0 0
0
0 1/ 5 2/ 5
1
0 -2/ 5 1/ 5
1
0 0 0
1
 Step 6: Inverse Rotation about y-axis
5/ 6 0 1/ 6 0
0 1 0 0
−1/ 6 0 5/ 6 0
0 0 0 1
 Step 7: Inverse of Translation
 Then we multiply all the matrices with each other.
1 0 0 2
0 1 0 1
0 0 1 0
0 0 0 1
 EX: Find the rotation for the point (1,2,1) by 90 degree
(1,2,3)
(4,6,7)
 Step 1: Translate to origin
 A= 4-1= 3
 B= 6-2= 4
 C= 7-3= 4
1 0 0 -1
0 1 0 -2
0 0 1 -3
0 0 0 1
 Step 2: Rotation about x-axis
 D= 𝑏2 + 𝑐2 = 42 + 42 = 32
 Sin= b/d= 4/ 32
 Cos= c/d= 4/ 321 0 0
0
0 4/ 32 -4/ 32 1
0 4/ 32 4/ 32
1
0 0 0
1
 Step 3: Rotation about y-axis
 L= 𝑎2 + 𝑏2 + 𝑐2 = 41
 Sin= a/L= 3/ 41
 Cos= d/L= 32/ 6
32/ 41 0 -3/41 0
0 1 0 0
3/ 41 0 32/ 41 0
0 0 0 1
 Step 4: Rotation about z-axis by 90 degree
0 -1 0 0
1 0 0 0
0 0 1 0
0 0 0 1
 Step 5: Inverse step 2
1 0 0
0
0 4/ 32 4/ 32 1
0 -4/ 32 4/ 32 1
0 0 0
1
 Step 6: Inverse step 3
32/ 41 0 3/ 41 0
0 1 0 0
-3/ 41 0 32/ 41 0
0 0 0 1
 Step 1: Inverse step 1
 Then we multiply all the matrices with each other and
with the point (1,2,1).
1 0 0 1
0 1 0 2
0 0 1 3
0 0 0 1

Weitere ähnliche Inhalte

Was ist angesagt?

Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithmsMohammad Sadiq
 
Lec05 circle ellipse
Lec05 circle ellipseLec05 circle ellipse
Lec05 circle ellipseMaaz Rizwan
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithmMani Kanth
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.Mohd Arif
 
Bresenhamcircle derivation
Bresenhamcircle derivationBresenhamcircle derivation
Bresenhamcircle derivationMazharul Islam
 
Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2SIMONTHOMAS S
 
Comuter graphics bresenhams circle drawing algorithm
Comuter graphics bresenhams circle drawing algorithmComuter graphics bresenhams circle drawing algorithm
Comuter graphics bresenhams circle drawing algorithmRachana Marathe
 
Lesson 12 centroid of an area
Lesson 12 centroid of an areaLesson 12 centroid of an area
Lesson 12 centroid of an areaLawrence De Vera
 
Math Section 2.1 ECC Etudes
Math Section 2.1 ECC EtudesMath Section 2.1 ECC Etudes
Math Section 2.1 ECC EtudesDavidYeeElCamino
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output PrimitivesPrathimaBaliga
 
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...Saikrishna Tanguturu
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 dxyz120
 
Lec02 03 rasterization
Lec02 03 rasterizationLec02 03 rasterization
Lec02 03 rasterizationMaaz Rizwan
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximationTarun Gehlot
 
Circle algorithm
Circle algorithmCircle algorithm
Circle algorithmPooja Dixit
 

Was ist angesagt? (20)

Bresenham circle
Bresenham circleBresenham circle
Bresenham circle
 
Lines and curves algorithms
Lines and curves algorithmsLines and curves algorithms
Lines and curves algorithms
 
Lec05 circle ellipse
Lec05 circle ellipseLec05 circle ellipse
Lec05 circle ellipse
 
Mid point circle algorithm
Mid point circle algorithmMid point circle algorithm
Mid point circle algorithm
 
Circle drawing algo.
Circle drawing algo.Circle drawing algo.
Circle drawing algo.
 
Bresenhamcircle derivation
Bresenhamcircle derivationBresenhamcircle derivation
Bresenhamcircle derivation
 
Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2
 
Comuter graphics bresenhams circle drawing algorithm
Comuter graphics bresenhams circle drawing algorithmComuter graphics bresenhams circle drawing algorithm
Comuter graphics bresenhams circle drawing algorithm
 
Lesson 12 centroid of an area
Lesson 12 centroid of an areaLesson 12 centroid of an area
Lesson 12 centroid of an area
 
Integration SPM
Integration SPMIntegration SPM
Integration SPM
 
Line circle draw
Line circle drawLine circle draw
Line circle draw
 
Math Section 2.1 ECC Etudes
Math Section 2.1 ECC EtudesMath Section 2.1 ECC Etudes
Math Section 2.1 ECC Etudes
 
Chapter 3 Output Primitives
Chapter 3 Output PrimitivesChapter 3 Output Primitives
Chapter 3 Output Primitives
 
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
Computer Graphics - Bresenham's line drawing algorithm & Mid Point Circle alg...
 
Matrix 2 d
Matrix 2 dMatrix 2 d
Matrix 2 d
 
Lec02 03 rasterization
Lec02 03 rasterizationLec02 03 rasterization
Lec02 03 rasterization
 
Unit 3
Unit 3Unit 3
Unit 3
 
Local linear approximation
Local linear approximationLocal linear approximation
Local linear approximation
 
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)bresenham circles and polygons in computer graphics(Computer graphics tutorials)
bresenham circles and polygons in computer graphics(Computer graphics tutorials)
 
Circle algorithm
Circle algorithmCircle algorithm
Circle algorithm
 

Ähnlich wie Computer Graphic - Transformations in 3d

2 d transformation
2 d transformation2 d transformation
2 d transformationAnkit Garg
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D2013901097
 
3D computer Graphic PPT.pptx in computer graphics
3D computer Graphic PPT.pptx in computer graphics3D computer Graphic PPT.pptx in computer graphics
3D computer Graphic PPT.pptx in computer graphicsgunnugunnu162
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer GraphicsA. S. M. Shafi
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer GraphicsA. S. M. Shafi
 
Sheet 1 electromagnetics
Sheet 1 electromagneticsSheet 1 electromagnetics
Sheet 1 electromagneticsMagdi Saadawi
 
Obj. 30 Reflections and Translations
Obj. 30 Reflections and TranslationsObj. 30 Reflections and Translations
Obj. 30 Reflections and Translationssmiller5
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer GraphicsSusmita
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformationsNareek
 
Geometry unit 9.3
Geometry unit 9.3Geometry unit 9.3
Geometry unit 9.3Mark Ryder
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling TransformationsTarun Gehlot
 
Distance in the cartesian plane
Distance in the cartesian planeDistance in the cartesian plane
Distance in the cartesian planeNeil MacIntosh
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics Vikram Halder
 
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4Vanishree Arun
 

Ähnlich wie Computer Graphic - Transformations in 3d (20)

2 d transformation
2 d transformation2 d transformation
2 d transformation
 
Computer Graphics - transformations in 2d
Computer Graphics - transformations in 2dComputer Graphics - transformations in 2d
Computer Graphics - transformations in 2d
 
Computer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2DComputer Graphic - Transformations in 2D
Computer Graphic - Transformations in 2D
 
3D computer Graphic PPT.pptx in computer graphics
3D computer Graphic PPT.pptx in computer graphics3D computer Graphic PPT.pptx in computer graphics
3D computer Graphic PPT.pptx in computer graphics
 
transformation IT.ppt
transformation IT.ppttransformation IT.ppt
transformation IT.ppt
 
3D Transformation in Computer Graphics
3D Transformation in Computer Graphics3D Transformation in Computer Graphics
3D Transformation in Computer Graphics
 
2D Transformation
2D Transformation2D Transformation
2D Transformation
 
2D Transformation in Computer Graphics
2D Transformation in Computer Graphics2D Transformation in Computer Graphics
2D Transformation in Computer Graphics
 
Sheet 1 electromagnetics
Sheet 1 electromagneticsSheet 1 electromagnetics
Sheet 1 electromagnetics
 
Obj. 30 Reflections and Translations
Obj. 30 Reflections and TranslationsObj. 30 Reflections and Translations
Obj. 30 Reflections and Translations
 
2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics2D Rotation- Transformation in Computer Graphics
2D Rotation- Transformation in Computer Graphics
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
Geometry unit 9.3
Geometry unit 9.3Geometry unit 9.3
Geometry unit 9.3
 
Presentacion unidad 4
Presentacion unidad 4Presentacion unidad 4
Presentacion unidad 4
 
Modeling Transformations
Modeling TransformationsModeling Transformations
Modeling Transformations
 
Distance in the cartesian plane
Distance in the cartesian planeDistance in the cartesian plane
Distance in the cartesian plane
 
2-D Transformations.pdf
2-D Transformations.pdf2-D Transformations.pdf
2-D Transformations.pdf
 
Transformations computer graphics
Transformations computer graphics Transformations computer graphics
Transformations computer graphics
 
10CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 410CSL67 CG LAB PROGRAM 4
10CSL67 CG LAB PROGRAM 4
 
2d transformations
2d transformations2d transformations
2d transformations
 

Mehr von 2013901097

Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method2013901097
 
Computer Graphic - Clipping
Computer Graphic - ClippingComputer Graphic - Clipping
Computer Graphic - Clipping2013901097
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections2013901097
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research2013901097
 
The Big M Method - Operation Research
The Big M Method - Operation ResearchThe Big M Method - Operation Research
The Big M Method - Operation Research2013901097
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 042013901097
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 032013901097
 
Operation research - Chapter 02
Operation research - Chapter 02Operation research - Chapter 02
Operation research - Chapter 022013901097
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 012013901097
 

Mehr von 2013901097 (9)

Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method
 
Computer Graphic - Clipping
Computer Graphic - ClippingComputer Graphic - Clipping
Computer Graphic - Clipping
 
Computer Graphic - Projections
Computer Graphic - ProjectionsComputer Graphic - Projections
Computer Graphic - Projections
 
the two phase method - operations research
the two phase method - operations researchthe two phase method - operations research
the two phase method - operations research
 
The Big M Method - Operation Research
The Big M Method - Operation ResearchThe Big M Method - Operation Research
The Big M Method - Operation Research
 
Operations research - Chapter 04
Operations research - Chapter 04Operations research - Chapter 04
Operations research - Chapter 04
 
Operation research - Chapter 03
Operation research - Chapter 03Operation research - Chapter 03
Operation research - Chapter 03
 
Operation research - Chapter 02
Operation research - Chapter 02Operation research - Chapter 02
Operation research - Chapter 02
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 

Kürzlich hochgeladen

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Kürzlich hochgeladen (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
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
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Computer Graphic - Transformations in 3d

  • 1.
  • 2.  Right handed space consistent with math.  Left handed space suitable to screens.  To transform from right to left negate the z values.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.  There are five steps for reflection about an arbitrary point in space: 1. Translate to the origin by –(x0,y0,z0). 2. Rotate (x’,y’,z’) about x-axis. 3. Rotate (x’,y’,z’) about y-axis. 4. Rotate about z-axis. 5. Inverse step 2 By changing the sin sign. 6. Inverse step 3 By changing the sin sign. 7. Inverse step 1 By changing the tx, ty and tz sign.
  • 9.  EX: Find the new coordinate of a unit cube 90 degree rotated about an axis defined by its end points A(2,1,0) and B(3,3,1).
  • 10.  Step 1: Translate to origin  a= 3-2= 1  b= 3-1= 2  c= 1-0= 1 1 0 0 -2 0 1 0 -1 0 0 1 0 0 0 0 1
  • 11.  Step 2: Rotation about x-axis  D= 𝑏2 + 𝑐2 = 22 + 12 = 5  Sin= b/d= 2/ 5  Cos= c/d= 1/ 5 1 0 0 0 0 1/ 5 -2/ 5 1 0 2/ 5 1/ 5 1 0 0 0 1
  • 12.  Step 3: Rotation about y-axis  L= 𝑎2 + 𝑏2 + 𝑐2 = 6  Sin= a/L= 1/ 6  Cos= d/L= 5/ 6 5/ 6 0 -1/ 6 0 0 1 0 0 1/ 6 0 5/ 6 0 0 0 0 1
  • 13.  Step 4: Rotation about z-axis by 90 degree 0 -1 0 0 1 0 0 0 0 0 1 0 0 0 0 1
  • 14.  Step 5: Inverse Rotation about x-axis 1 0 0 0 0 1/ 5 2/ 5 1 0 -2/ 5 1/ 5 1 0 0 0 1
  • 15.  Step 6: Inverse Rotation about y-axis 5/ 6 0 1/ 6 0 0 1 0 0 −1/ 6 0 5/ 6 0 0 0 0 1
  • 16.  Step 7: Inverse of Translation  Then we multiply all the matrices with each other. 1 0 0 2 0 1 0 1 0 0 1 0 0 0 0 1
  • 17.  EX: Find the rotation for the point (1,2,1) by 90 degree (1,2,3) (4,6,7)
  • 18.  Step 1: Translate to origin  A= 4-1= 3  B= 6-2= 4  C= 7-3= 4 1 0 0 -1 0 1 0 -2 0 0 1 -3 0 0 0 1
  • 19.  Step 2: Rotation about x-axis  D= 𝑏2 + 𝑐2 = 42 + 42 = 32  Sin= b/d= 4/ 32  Cos= c/d= 4/ 321 0 0 0 0 4/ 32 -4/ 32 1 0 4/ 32 4/ 32 1 0 0 0 1
  • 20.  Step 3: Rotation about y-axis  L= 𝑎2 + 𝑏2 + 𝑐2 = 41  Sin= a/L= 3/ 41  Cos= d/L= 32/ 6 32/ 41 0 -3/41 0 0 1 0 0 3/ 41 0 32/ 41 0 0 0 0 1
  • 21.  Step 4: Rotation about z-axis by 90 degree 0 -1 0 0 1 0 0 0 0 0 1 0 0 0 0 1
  • 22.  Step 5: Inverse step 2 1 0 0 0 0 4/ 32 4/ 32 1 0 -4/ 32 4/ 32 1 0 0 0 1
  • 23.  Step 6: Inverse step 3 32/ 41 0 3/ 41 0 0 1 0 0 -3/ 41 0 32/ 41 0 0 0 0 1
  • 24.  Step 1: Inverse step 1  Then we multiply all the matrices with each other and with the point (1,2,1). 1 0 0 1 0 1 0 2 0 0 1 3 0 0 0 1