SlideShare a Scribd company logo
1 of 18
 Projections: Transform points in coordinate system of
dimension N into a coordinate system of dimension less
than N.
 In other word, take a point from m dimensions to n
dimensions where N<M.
 In this chapter we will deal with projection from 3d to
2d
 There are two types of projections:
1. Parallel.
Orthographic.
Oblique.
2. Perspective.
 Projection of a 3D object is defined by straight
projection rays (projectors) coming from the center of
projection passing through each point of the object and
intersecting the projection plane.
 Projections requires:
1. Projections plane.
2. Projections Reference Point (PRP) or Center of
Projection (CRP).
 The projected view of an object is determined by
calculating the intersection of projection lines with the
view plane.
 Projectors: Lines from coordinate in original space to
coordinate in projected space.
 In parallel projections, coordinate positions are
transformed to the view plane (projection plane) along
parallel lines (projectors).
 In perspective, object position are transformed to the
view plane along lines that converge to COP.
 In orthographic the direction of projection = normal to
the projection plane.
 In oblique the direction of projection != normal to the
projection plane.
 Direction/Center of projection: The main key factors in
projection are DOP and COP.
 If the DOP is the same for all point, then we have
parallel projection, else we have perspective projection.
 If the distance of COP is finite, then we have
perspective projection, else we have parallel projection.
 In general, projection is determined by where you
place the projection plane relative to principle axes of
object (relative angle and position), and what angle the
projection make within the projection plane.
 Perspective:
Size varies inversely with distance (Looks realistic).
Distance and angle are not preserved.
Parallel lines do not remain parallel.
 Parallel:
Less realistic.
Angles are not preserved.
Parallel lines remain parallel.
Good for exact measurement.
 In Orthographic there is no COP at infinity and A=A’
and B=B’, but in Oblique COP at infinity
 Perspective projection of a point P with coordinates
(X,Y,Z) to position (X’,Y’,Z’) on the view plane.
 X’= X - XU.
 Y’= Y - YU.
 Z’= Z – (Z-ZPRP).
 Parameter U takes values from 0 to 1.
 When U= 0.
X’= X. Orthographic parallel projection
Y’= Y.
 When U= 1.
X’= 0
Y’= 0 (0,0,ZPRP) so the point is at projection
Z’= ZPRP. Reference point PRP
 On the view plane Z’= ZVP.
 U= (ZVP – Z) / (ZPRP – Z).
 XP= X ((ZPRP – ZVP) / (Z – ZPRP)) = X (dP / (Z-ZPRP))
 YP= Y ((ZPRP – ZVP) / (Z – ZPRP)) = Y (dP / (Z-ZPRP))
 Where dP = ZPRP – ZVP is the distance of the view plane
VP from the projection reference plane PRP.
 Using 3d homogeneous-coordinate representation, we
can write the perspective projection transformation as
 Xh = X.
 Yh = Y.
 Zh = Z (ZVP / dP) – ZVP (ZPRP / dP).
 h= (Z / dP) – (ZPRP / dP)
 XP = Xh / h.
 YP = Yh / h.
 EX: If you have a point (2,4,6) and you want to project
using perspective projection, suppose that ZPRP=20 and
ZVP=10.
 dP= ZPRP – ZVP= 20-10 = 10.
 XP= X (dP / (Z-ZPRP))= 2 (10/-14).
 YP= Y (dP / (Z-ZPRP))= 4 (10/-14).
 Using 3d homogenous coordinate:
 Xh = 2, Yh = 4.
 h= (6 / 10) – (20 / 10)= -14/10.
 XP = 2 / (-14/10)= 20/-14.
 YP = 4 / (-14/10)= 40/-14.
 Oblique projection of coordinate position (X,Y,Z) to
position (XP,YP) on the view plan.
 X’= L * Cos θ.
 Y’= L * Sin θ.
 XP= X + X’= X + L * Cos θ.
 YP= Y + Y’= Y + L * Sin θ.
 Length L depends on the angle α and the Z coordinate of
the point to be projected
 Tan α= Z/L.
 L= Z/tan α= ZL1, where L1 is the inverse of tan α which
is also the value of L when Z = 1. We can then write the
oblique projection equations as:
XP= X + Z(L1 Cos θ).
YP= Y + Z(L1 Sin θ).
 X’= L * Cos θ.
 An orthographic projection obtained when L= 0.
 Common choices for θ in 30 and 45, which display a
combination view of the top, bottom and sides.
 EX: If you have a point (2,5,7) and you want to project
using oblique projection, suppose that θ=45 and α=45.
 L1= 1/tan α= 1.
 XP= X + Z(L1 Cos θ)= 2 + 7(1 Cos 45)= 2+(7/ 2).
 YP= Y + Z(L1 Sin θ)= 5 + 7(1 Sin 45)= 5+(7/ 2).
 EX: If you have a point (3,4,6) and you have θ=45,α=45,
ZPRP=5 and ZVP=2. Find the new coordinate using :
(A)Perspective (B)Orthographic (C)Oblique.
 (A) dP= ZPRP – ZVP= 5-2 = 3.
XP= X (dP / (Z-ZPRP))= 3 (3/1)= 9.
YP= Y (dP / (Z-ZPRP))= 4 (3/1)= 12.
 (B) XP= 3, YP= 4 Just drop Z.
 (C) L1= 1/tan α= 1.
XP= X + Z(L1 Cos θ)= 3 + 6(1 Cos 45)= 3+(6/ 2).
YP= Y + Z(L1 Sin θ)= 4 + 6(1 Sin 45)= 4+(6/ 2).

More Related Content

What's hot (20)

Hidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-bufferHidden Surface Removal using Z-buffer
Hidden Surface Removal using Z-buffer
 
Graphics_3D viewing
Graphics_3D viewingGraphics_3D viewing
Graphics_3D viewing
 
Shading
ShadingShading
Shading
 
viewing3d pipeline
viewing3d pipelineviewing3d pipeline
viewing3d pipeline
 
Parallel and perspective projection in 3 d cg
Parallel and perspective projection in 3 d cgParallel and perspective projection in 3 d cg
Parallel and perspective projection in 3 d cg
 
Hidden Surfaces
Hidden SurfacesHidden Surfaces
Hidden Surfaces
 
Clipping
ClippingClipping
Clipping
 
Z buffer
Z bufferZ buffer
Z buffer
 
Visible Surface Detection
Visible Surface DetectionVisible Surface Detection
Visible Surface Detection
 
Back face detection
Back face detectionBack face detection
Back face detection
 
Morphological image processing
Morphological image processingMorphological image processing
Morphological image processing
 
Shading in OpenGL
Shading in OpenGLShading in OpenGL
Shading in OpenGL
 
Hidden surface removal
Hidden surface removalHidden surface removal
Hidden surface removal
 
Hidden surfaces
Hidden surfacesHidden surfaces
Hidden surfaces
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 
study Active Refocusing Of Images And Videos
study Active Refocusing Of Images And Videosstudy Active Refocusing Of Images And Videos
study Active Refocusing Of Images And Videos
 
Object representations
Object representationsObject representations
Object representations
 
ResearchPaper
ResearchPaperResearchPaper
ResearchPaper
 
Saad alsheekh multi view
Saad alsheekh  multi viewSaad alsheekh  multi view
Saad alsheekh multi view
 
Morphological operations
Morphological operationsMorphological operations
Morphological operations
 

Similar to Projection Types and Formulas for Transforming 3D to 2D Coordinates

View in 3_d_asper_syllabus
View in 3_d_asper_syllabusView in 3_d_asper_syllabus
View in 3_d_asper_syllabuslokesh503
 
View in 3_d_asper_syllabus
View in 3_d_asper_syllabusView in 3_d_asper_syllabus
View in 3_d_asper_syllabuslokesh503
 
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)Harish Chandra Rajpoot
 
Calculus multiple integral
Calculus multiple integralCalculus multiple integral
Calculus multiple integralprashant chelani
 
Parallel projection
Parallel projectionParallel projection
Parallel projectionPrince Shahu
 
PROJECT EVERYTHNG
PROJECT EVERYTHNGPROJECT EVERYTHNG
PROJECT EVERYTHNGFalade John
 
Double Robustness: Theory and Applications with Missing Data
Double Robustness: Theory and Applications with Missing DataDouble Robustness: Theory and Applications with Missing Data
Double Robustness: Theory and Applications with Missing DataLu Mao
 
Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Xad Kuain
 
Computer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionComputer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionDamian T. Gordon
 
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdf
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdfSTEREOGRAPHIC PROJECTION AND MAP MAKING.pdf
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdfRajatSharma805101
 
Reflection, Scaling, Shear, Translation, and Rotation
Reflection, Scaling, Shear, Translation, and RotationReflection, Scaling, Shear, Translation, and Rotation
Reflection, Scaling, Shear, Translation, and RotationSaumya Tiwari
 
circular-functions.pptx
circular-functions.pptxcircular-functions.pptx
circular-functions.pptxCjIgcasenza
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer GraphicsSanthiNivas
 

Similar to Projection Types and Formulas for Transforming 3D to 2D Coordinates (20)

View in 3_d_asper_syllabus
View in 3_d_asper_syllabusView in 3_d_asper_syllabus
View in 3_d_asper_syllabus
 
View in 3_d_asper_syllabus
View in 3_d_asper_syllabusView in 3_d_asper_syllabus
View in 3_d_asper_syllabus
 
Projection
ProjectionProjection
Projection
 
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)
Hcr's Theory of Polygon (Proposed by Mr Harish Chandra Rajpoot)
 
returika
returikareturika
returika
 
lec41.ppt
lec41.pptlec41.ppt
lec41.ppt
 
Interpolation
InterpolationInterpolation
Interpolation
 
Calculus multiple integral
Calculus multiple integralCalculus multiple integral
Calculus multiple integral
 
Parallel projection
Parallel projectionParallel projection
Parallel projection
 
PROJECT EVERYTHNG
PROJECT EVERYTHNGPROJECT EVERYTHNG
PROJECT EVERYTHNG
 
2D transformations
2D transformations2D transformations
2D transformations
 
Double Robustness: Theory and Applications with Missing Data
Double Robustness: Theory and Applications with Missing DataDouble Robustness: Theory and Applications with Missing Data
Double Robustness: Theory and Applications with Missing Data
 
parabola class 12
parabola class 12parabola class 12
parabola class 12
 
Computer Graphics & linear Algebra
Computer Graphics & linear Algebra Computer Graphics & linear Algebra
Computer Graphics & linear Algebra
 
Computer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and MotionComputer Vision: Shape from Specularities and Motion
Computer Vision: Shape from Specularities and Motion
 
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdf
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdfSTEREOGRAPHIC PROJECTION AND MAP MAKING.pdf
STEREOGRAPHIC PROJECTION AND MAP MAKING.pdf
 
Oblique Projections
Oblique ProjectionsOblique Projections
Oblique Projections
 
Reflection, Scaling, Shear, Translation, and Rotation
Reflection, Scaling, Shear, Translation, and RotationReflection, Scaling, Shear, Translation, and Rotation
Reflection, Scaling, Shear, Translation, and Rotation
 
circular-functions.pptx
circular-functions.pptxcircular-functions.pptx
circular-functions.pptx
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics
 

More from Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D

More from Hisham Al Kurdi, EAVA, DMC-D-4K, HCCA-P, HCAA-D (20)

Audio
AudioAudio
Audio
 
The Passive
The PassiveThe Passive
The Passive
 
Relative Clauses
Relative ClausesRelative Clauses
Relative Clauses
 
Quantifiers
QuantifiersQuantifiers
Quantifiers
 
Present Simple and Continuous
Present Simple and ContinuousPresent Simple and Continuous
Present Simple and Continuous
 
Present Perfect Simple and Continuous
Present Perfect Simple and ContinuousPresent Perfect Simple and Continuous
Present Perfect Simple and Continuous
 
Prepositions
PrepositionsPrepositions
Prepositions
 
Past Simple and Continuous
Past Simple and ContinuousPast Simple and Continuous
Past Simple and Continuous
 
Obligation and Permission
Obligation and PermissionObligation and Permission
Obligation and Permission
 
Comparatives and Superlatives
Comparatives and SuperlativesComparatives and Superlatives
Comparatives and Superlatives
 
Auxiliary verbs
Auxiliary verbsAuxiliary verbs
Auxiliary verbs
 
Adjective ending in ed or ing
Adjective ending in ed or ingAdjective ending in ed or ing
Adjective ending in ed or ing
 
Operations Research - Game Theory
Operations Research - Game TheoryOperations Research - Game Theory
Operations Research - Game Theory
 
Operations Research - Sensitivity Analysis
Operations Research - Sensitivity AnalysisOperations Research - Sensitivity Analysis
Operations Research - Sensitivity Analysis
 
Operations Research - The Dual Simplex Method
Operations Research - The Dual Simplex MethodOperations Research - The Dual Simplex Method
Operations Research - The Dual Simplex Method
 
Operations Research - The Revised Simplex Method
Operations Research - The Revised Simplex MethodOperations Research - The Revised Simplex Method
Operations Research - The Revised Simplex Method
 
Operations Research - The Two Phase Method
Operations Research - The Two Phase MethodOperations Research - The Two Phase Method
Operations Research - The Two Phase Method
 
Operations Research - The Big M Method
Operations Research - The Big M MethodOperations Research - The Big M Method
Operations Research - The Big M Method
 
Operations Research - Simplex Method Tableau
Operations Research - Simplex Method TableauOperations Research - Simplex Method Tableau
Operations Research - Simplex Method Tableau
 
Operations Research - Simplex Method Principles
Operations Research - Simplex Method PrinciplesOperations Research - Simplex Method Principles
Operations Research - Simplex Method Principles
 

Recently uploaded

4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Projectjordimapav
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxlancelewisportillo
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4JOYLYNSAMANIEGO
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSMae Pangan
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...DhatriParmar
 

Recently uploaded (20)

4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
ClimART Action | eTwinning Project
ClimART Action    |    eTwinning ProjectClimART Action    |    eTwinning Project
ClimART Action | eTwinning Project
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptxQ4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
Q4-PPT-Music9_Lesson-1-Romantic-Opera.pptx
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Paradigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTAParadigm shift in nursing research by RS MEHTA
Paradigm shift in nursing research by RS MEHTA
 
Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4Daily Lesson Plan in Mathematics Quarter 4
Daily Lesson Plan in Mathematics Quarter 4
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Textual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHSTextual Evidence in Reading and Writing of SHS
Textual Evidence in Reading and Writing of SHS
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
Beauty Amidst the Bytes_ Unearthing Unexpected Advantages of the Digital Wast...
 

Projection Types and Formulas for Transforming 3D to 2D Coordinates

  • 1.
  • 2.  Projections: Transform points in coordinate system of dimension N into a coordinate system of dimension less than N.  In other word, take a point from m dimensions to n dimensions where N<M.  In this chapter we will deal with projection from 3d to 2d  There are two types of projections: 1. Parallel. Orthographic. Oblique. 2. Perspective.
  • 3.  Projection of a 3D object is defined by straight projection rays (projectors) coming from the center of projection passing through each point of the object and intersecting the projection plane.  Projections requires: 1. Projections plane. 2. Projections Reference Point (PRP) or Center of Projection (CRP).  The projected view of an object is determined by calculating the intersection of projection lines with the view plane.  Projectors: Lines from coordinate in original space to coordinate in projected space.
  • 4.  In parallel projections, coordinate positions are transformed to the view plane (projection plane) along parallel lines (projectors).  In perspective, object position are transformed to the view plane along lines that converge to COP.  In orthographic the direction of projection = normal to the projection plane.  In oblique the direction of projection != normal to the projection plane.  Direction/Center of projection: The main key factors in projection are DOP and COP.
  • 5.  If the DOP is the same for all point, then we have parallel projection, else we have perspective projection.  If the distance of COP is finite, then we have perspective projection, else we have parallel projection.  In general, projection is determined by where you place the projection plane relative to principle axes of object (relative angle and position), and what angle the projection make within the projection plane.
  • 6.  Perspective: Size varies inversely with distance (Looks realistic). Distance and angle are not preserved. Parallel lines do not remain parallel.  Parallel: Less realistic. Angles are not preserved. Parallel lines remain parallel. Good for exact measurement.
  • 7.
  • 8.  In Orthographic there is no COP at infinity and A=A’ and B=B’, but in Oblique COP at infinity
  • 9.  Perspective projection of a point P with coordinates (X,Y,Z) to position (X’,Y’,Z’) on the view plane.
  • 10.  X’= X - XU.  Y’= Y - YU.  Z’= Z – (Z-ZPRP).  Parameter U takes values from 0 to 1.  When U= 0. X’= X. Orthographic parallel projection Y’= Y.  When U= 1. X’= 0 Y’= 0 (0,0,ZPRP) so the point is at projection Z’= ZPRP. Reference point PRP
  • 11.  On the view plane Z’= ZVP.  U= (ZVP – Z) / (ZPRP – Z).  XP= X ((ZPRP – ZVP) / (Z – ZPRP)) = X (dP / (Z-ZPRP))  YP= Y ((ZPRP – ZVP) / (Z – ZPRP)) = Y (dP / (Z-ZPRP))  Where dP = ZPRP – ZVP is the distance of the view plane VP from the projection reference plane PRP.  Using 3d homogeneous-coordinate representation, we can write the perspective projection transformation as
  • 12.  Xh = X.  Yh = Y.  Zh = Z (ZVP / dP) – ZVP (ZPRP / dP).  h= (Z / dP) – (ZPRP / dP)  XP = Xh / h.  YP = Yh / h.
  • 13.  EX: If you have a point (2,4,6) and you want to project using perspective projection, suppose that ZPRP=20 and ZVP=10.  dP= ZPRP – ZVP= 20-10 = 10.  XP= X (dP / (Z-ZPRP))= 2 (10/-14).  YP= Y (dP / (Z-ZPRP))= 4 (10/-14).  Using 3d homogenous coordinate:  Xh = 2, Yh = 4.  h= (6 / 10) – (20 / 10)= -14/10.  XP = 2 / (-14/10)= 20/-14.  YP = 4 / (-14/10)= 40/-14.
  • 14.  Oblique projection of coordinate position (X,Y,Z) to position (XP,YP) on the view plan.
  • 15.  X’= L * Cos θ.  Y’= L * Sin θ.  XP= X + X’= X + L * Cos θ.  YP= Y + Y’= Y + L * Sin θ.  Length L depends on the angle α and the Z coordinate of the point to be projected  Tan α= Z/L.  L= Z/tan α= ZL1, where L1 is the inverse of tan α which is also the value of L when Z = 1. We can then write the oblique projection equations as: XP= X + Z(L1 Cos θ). YP= Y + Z(L1 Sin θ).
  • 16.  X’= L * Cos θ.  An orthographic projection obtained when L= 0.  Common choices for θ in 30 and 45, which display a combination view of the top, bottom and sides.
  • 17.  EX: If you have a point (2,5,7) and you want to project using oblique projection, suppose that θ=45 and α=45.  L1= 1/tan α= 1.  XP= X + Z(L1 Cos θ)= 2 + 7(1 Cos 45)= 2+(7/ 2).  YP= Y + Z(L1 Sin θ)= 5 + 7(1 Sin 45)= 5+(7/ 2).
  • 18.  EX: If you have a point (3,4,6) and you have θ=45,α=45, ZPRP=5 and ZVP=2. Find the new coordinate using : (A)Perspective (B)Orthographic (C)Oblique.  (A) dP= ZPRP – ZVP= 5-2 = 3. XP= X (dP / (Z-ZPRP))= 3 (3/1)= 9. YP= Y (dP / (Z-ZPRP))= 4 (3/1)= 12.  (B) XP= 3, YP= 4 Just drop Z.  (C) L1= 1/tan α= 1. XP= X + Z(L1 Cos θ)= 3 + 6(1 Cos 45)= 3+(6/ 2). YP= Y + Z(L1 Sin θ)= 4 + 6(1 Sin 45)= 4+(6/ 2).