SlideShare a Scribd company logo
Geometry
Deck.
From Virtual Reality of Steven M. LaValle
Contents
4. Perspective ( Virtual Camera )
5. Put it all together ( Chaining the
transformations )
4. Viewing Transformation
1. How the models transform to “appear” in
a virtual world.
2. Virtual Camera should be taken into
consideration.
4. An eye's view
A flat rectangular shape is chosen for a Virtual Screen for engineering and
historical reasons, not matching our retina though.
4. An eye's view
Generally eye is assumed to look down the negative z axis.
This way the view can have the default perspective set to
x = horizontal, y = vertical and right-handed Cartesian Coord.
4. An eye's view
Assume we have Reye, to behold models appear in VR,
Reye should move as inverted to its input.
Moving the world instead of the eye object is more plausible this time. ( Fig 3.4(c) )
4. Starting from a look-at
Components of look-at
1. Position of the eye : e
2. Central looking direction of the eye : ĉ
3. Up direction : û
ĉ is a vector from p to e, in short.
Translation of look-at : e
Rotation of look-at :
4. Orthographic projection
Project 3D to xy plane with z = 0, it's orthographic projection.
Problem arises as follows :
1. Jumbled objects superimposing onto each other.
2. The display would extend infinitely except z axis
3. Objects that are closer should appear larger than those further away
4. Perspective projection
Consider each line through the origin for each point.
Assume λz = -1, then x' = -x/z, y' = -y/z
4. Perspective projection
Vertical Plane is Virtual Screen where the model is projected onto.
x' = dx/z
y' = dy/z.
5. Chaining the Transformations
The Transform Chain appears generally as follows :
T is a point ( x, y, z, 1 )
Chain operations are applied from right to left.
Trb = Rigid Body Transform
Teye = Coordinate frame of the eye
5. Canonical View Transform
5. Keeping track of depth
z is to keep tracking of the distance of each point from the eye
When divided by z, the formula doesn't preserve its exact distance,
Still the distance ordering is preserved.
5. Additional Translation and Scaling
The matrix performs a simple translation of the box along the z axis.
On condition the frustrum is centered perfectly in the xy plane,
then -(r+l)/(r-l) = 0, -(t+b)/(t-b) = 0
So,
5. Viewport transform
The last tranform is viewport transform
Suppose we need to project all these points to the physical display such as
1980(m) x 1080(n)
m is horizontal ranging from 0 to m-1,
n is vertical ranging from 0 to n-1.
5. Left and Right eyes
t is the distance value between left and right eyes
t varies among people, however the average is t = 0.064
Simply move cyclopean eye horizontally to the left, which means models need moving to
the right.
FYI, right eye transform is,

More Related Content

Similar to 3.4-5 : geometry-virtual-world

Mapping of functions
Mapping of functionsMapping of functions
Mapping of functions
Tarun Gehlot
 
Transformations of functions
Transformations of functionsTransformations of functions
Transformations of functions
Tarun Gehlot
 
6. Perspective Projection .pdf
6. Perspective  Projection                    .pdf6. Perspective  Projection                    .pdf
6. Perspective Projection .pdf
YatruHarshaHiski
 

Similar to 3.4-5 : geometry-virtual-world (20)

Computer Graphics - Lecture 03 - Virtual Cameras and the Transformation Pipeline
Computer Graphics - Lecture 03 - Virtual Cameras and the Transformation PipelineComputer Graphics - Lecture 03 - Virtual Cameras and the Transformation Pipeline
Computer Graphics - Lecture 03 - Virtual Cameras and the Transformation Pipeline
 
3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago3D Math Primer: CocoaConf Chicago
3D Math Primer: CocoaConf Chicago
 
The Day You Finally Use Algebra: A 3D Math Primer
The Day You Finally Use Algebra: A 3D Math PrimerThe Day You Finally Use Algebra: A 3D Math Primer
The Day You Finally Use Algebra: A 3D Math Primer
 
CS 354 Object Viewing and Representation
CS 354 Object Viewing and RepresentationCS 354 Object Viewing and Representation
CS 354 Object Viewing and Representation
 
Mapping of functions
Mapping of functionsMapping of functions
Mapping of functions
 
Transformations of functions
Transformations of functionsTransformations of functions
Transformations of functions
 
6. Perspective Projection .pdf
6. Perspective  Projection                    .pdf6. Perspective  Projection                    .pdf
6. Perspective Projection .pdf
 
Lecture 11 Perspective Projection
Lecture 11 Perspective ProjectionLecture 11 Perspective Projection
Lecture 11 Perspective Projection
 
3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
Pt1420 Week 1 Lab Report
Pt1420 Week 1 Lab ReportPt1420 Week 1 Lab Report
Pt1420 Week 1 Lab Report
 
Three dimensional concepts - Computer Graphics
Three dimensional concepts - Computer GraphicsThree dimensional concepts - Computer Graphics
Three dimensional concepts - Computer Graphics
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
Lesson 3- Transformations
Lesson 3- TransformationsLesson 3- Transformations
Lesson 3- Transformations
 
Cg
CgCg
Cg
 
Trident International Graphics Workshop 2014 2/5
Trident International Graphics Workshop 2014 2/5Trident International Graphics Workshop 2014 2/5
Trident International Graphics Workshop 2014 2/5
 
Chapter 3 Image Processing: Basic Transformation
Chapter 3 Image Processing:  Basic TransformationChapter 3 Image Processing:  Basic Transformation
Chapter 3 Image Processing: Basic Transformation
 
Complex Variables Assignment Help
Complex Variables Assignment HelpComplex Variables Assignment Help
Complex Variables Assignment Help
 
Complex Variables Assignment Help
Complex Variables Assignment HelpComplex Variables Assignment Help
Complex Variables Assignment Help
 
Joukowski's airfoils, introduction to conformal mapping
Joukowski's  airfoils, introduction to conformal mappingJoukowski's  airfoils, introduction to conformal mapping
Joukowski's airfoils, introduction to conformal mapping
 
3D transformation in computer graphics
3D transformation in computer graphics3D transformation in computer graphics
3D transformation in computer graphics
 

Recently uploaded

Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
Kamal Acharya
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
Atif Razi
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
AbrahamGadissa
 

Recently uploaded (20)

fundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projectionfundamentals of drawing and isometric and orthographic projection
fundamentals of drawing and isometric and orthographic projection
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-5 Notes for II-II Mechanical Engineering
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
Laundry management system project report.pdf
Laundry management system project report.pdfLaundry management system project report.pdf
Laundry management system project report.pdf
 
Top 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering ScientistTop 13 Famous Civil Engineering Scientist
Top 13 Famous Civil Engineering Scientist
 
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical SolutionsRS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
RS Khurmi Machine Design Clutch and Brake Exercise Numerical Solutions
 
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical EngineeringIntroduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
Introduction to Machine Learning Unit-4 Notes for II-II Mechanical Engineering
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWINGBRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
BRAKING SYSTEM IN INDIAN RAILWAY AutoCAD DRAWING
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data AnalysisIT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
fluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answerfluid mechanics gate notes . gate all pyqs answer
fluid mechanics gate notes . gate all pyqs answer
 
Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 

3.4-5 : geometry-virtual-world

  • 1. Geometry Deck. From Virtual Reality of Steven M. LaValle
  • 2. Contents 4. Perspective ( Virtual Camera ) 5. Put it all together ( Chaining the transformations )
  • 3. 4. Viewing Transformation 1. How the models transform to “appear” in a virtual world. 2. Virtual Camera should be taken into consideration.
  • 4. 4. An eye's view A flat rectangular shape is chosen for a Virtual Screen for engineering and historical reasons, not matching our retina though.
  • 5. 4. An eye's view Generally eye is assumed to look down the negative z axis. This way the view can have the default perspective set to x = horizontal, y = vertical and right-handed Cartesian Coord.
  • 6. 4. An eye's view Assume we have Reye, to behold models appear in VR, Reye should move as inverted to its input. Moving the world instead of the eye object is more plausible this time. ( Fig 3.4(c) )
  • 7. 4. Starting from a look-at Components of look-at 1. Position of the eye : e 2. Central looking direction of the eye : ĉ 3. Up direction : û ĉ is a vector from p to e, in short. Translation of look-at : e Rotation of look-at :
  • 8. 4. Orthographic projection Project 3D to xy plane with z = 0, it's orthographic projection. Problem arises as follows : 1. Jumbled objects superimposing onto each other. 2. The display would extend infinitely except z axis 3. Objects that are closer should appear larger than those further away
  • 9. 4. Perspective projection Consider each line through the origin for each point. Assume λz = -1, then x' = -x/z, y' = -y/z
  • 10. 4. Perspective projection Vertical Plane is Virtual Screen where the model is projected onto. x' = dx/z y' = dy/z.
  • 11. 5. Chaining the Transformations The Transform Chain appears generally as follows : T is a point ( x, y, z, 1 ) Chain operations are applied from right to left. Trb = Rigid Body Transform Teye = Coordinate frame of the eye
  • 12. 5. Canonical View Transform
  • 13. 5. Keeping track of depth z is to keep tracking of the distance of each point from the eye When divided by z, the formula doesn't preserve its exact distance, Still the distance ordering is preserved.
  • 14. 5. Additional Translation and Scaling The matrix performs a simple translation of the box along the z axis. On condition the frustrum is centered perfectly in the xy plane, then -(r+l)/(r-l) = 0, -(t+b)/(t-b) = 0 So,
  • 15. 5. Viewport transform The last tranform is viewport transform Suppose we need to project all these points to the physical display such as 1980(m) x 1080(n) m is horizontal ranging from 0 to m-1, n is vertical ranging from 0 to n-1.
  • 16. 5. Left and Right eyes t is the distance value between left and right eyes t varies among people, however the average is t = 0.064 Simply move cyclopean eye horizontally to the left, which means models need moving to the right. FYI, right eye transform is,