We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byAnne Spencer
Modified about 1 year ago
©Larry F. Hodges (modified by Amos Johnson) 1 Arbitrary 3-D View-Plane
©Larry F. Hodges (modified by Amos Johnson) 2 Specifying An Arbitrary 3-D View Two coordinate systems World reference coordinate system (WRC) Viewing reference coordinate system (VRC) First specify a viewplane and coordinate system (WRC) View Reference Point (VRP) View Plane Normal (VPN) View Up Vector (VUP) Specify a window on the view plane (VRC) Max and min u,v values ( Center of the window (CW)) Projection Reference Point (PRP) Front (F) and back (B) clipping planes (hither and yon)
©Larry F. Hodges (modified by Amos Johnson) 3 Specifying A View
©Larry F. Hodges (modified by Amos Johnson) 4 Normalizing Transformation 1.Translate VRP to origin 2.Rotate the VRC system such that the VPN (n-axis) becomes the z-axis, the u-axis becomes the x-axis and the v-axis becomes the y-axis 3.Translate so that the CoP given by the PRP is at the origin 4.Shear such that the center line of the view volume becomes the z-axis 5.Scale so that the view volume becomes the canonical view volume: y = z, y = -z, x=z, x = -z, z = z min, z = z max
©Larry F. Hodges (modified by Amos Johnson) 5 1. Translate VRP to origin (100-VRPx) (010-VRPy) (001-VRPz) (000 1)
©Larry F. Hodges (modified by Amos Johnson) 6 2. Rotate VRC We want to take u into (1, 0, 0) v into (0, 1, 0) n into (0, 0, 1) First derive n, u, and v from user input: n = VPN / ||VPN|| u = (Vup x n) / ||Vup x n|| v = n x u
©Larry F. Hodges (modified by Amos Johnson) 7 2. Rotate VRC (cont.) (uxuyuz0)(vxvyvz0)(nxnynz0)(0001)(uxuyuz0)(vxvyvz0)(nxnynz0)(0001)
©Larry F. Hodges (modified by Amos Johnson) 8 3. Translate so that the CoP given by the PRP is at the origin (100-PRP u ) (010-PRP v ) (001-PRP n ) (0001)
©Larry F. Hodges (modified by Amos Johnson) 9 4. Shear such that the center line of the view volume becomes the z-axis Center line of window lies along the vector [CW - PRP], this is the direction of projection, DoP. PRP
©Larry F. Hodges (modified by Amos Johnson) 10 Shear (cont.) ((umax + umin)/2 )(PRPu) CW =((vmax + vmin)/2 )PRP=(PRPv) (0)(PRPn) (1)(1) ((umax + umin)/2 - PRPu) DoP = [CW-PRP] = ((vmax + vmin)/2 - PRPv) (0 - PRPn) (1) The shear matrix must take this direction of projection and shear it to the z-axis, DoP' = [0, 0, DoPz].
©Larry F. Hodges (modified by Amos Johnson) 11 Shear (cont.) (10SHx0 ) We want SH*DoP =DoP' SH =(01SHy0 ) (0010 ) (0001 ) (10SHx0 ) ((umax + umin)/2 - PRPu ) (0) (01SHy0 ) ((vmax + vmin)/2 - PRPv )= (0) (0010 ) (0 - PRPn ) (DoPz) (0001 ) ( 1 ) (1) SHx = -DoPx/DoPz, SHy = -DoPy/DoPz
©Larry F. Hodges (modified by Amos Johnson) Scale z=-PRP n z= -PRP n + Bz=-PRP n + F y = -v + v maxmin 2 y = v - v max min 2 Y axis +1 -Z Back Clipping Plane z=-1 Front Clipping Plane y= -z y= z Before Scale After Scale View plane
©Larry F. Hodges (modified by Amos Johnson) Scale (cont.) Scale is done in two steps: 1. First scale in x and y xscale = -2PRPn/(umax - umin) yscale = -2PRPn/(vmax - vmin) 2. Scale everything uniformly such that the back clipping plane becomes z = -1 xscale = -1 / (-PRPn + B) yscale = -1 / (-PRPn + B) zscale = -1 / (-PRPn + B)
©Larry F. Hodges (modified by Amos Johnson) Scale (cont.) (Sx000 ) (0Sy00 ) (00Sz0 ) (0001 ) Sx = 2PRPn / [(umax - umin) (-PRPn + B)] Sy = 2PRPn / [(vmax - vmin) (-PRPn + B)] Sz = -1 / [(vmax - vmin) (-PRPn + B)]
©Larry F. Hodges (modified by Amos Johnson) 15 Total Composite Transformation Nper = [Sper ][SHper ][T(-PRP) ][R ][T(-VRP)]
Computer Graphics: 3D Transformations Kocaeli Universitesity Computer Engineering Department Fall
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 4 Viewing Pipeline Getting Started with OpenGL.
3D Transformations 1 Assist. Prof. Dr. Ahmet Sayar Computer Engineering Department Computer Graphics Course Kocaeli University Fall 2012.
Lecture 7 2D Transformation. What is a transformation? Exactly what it says - an operation that transforms or changes a shape (line, shape, drawing etc.)
Computer Graphics: 2D Transformations Kocaeli Universitesity Computer Engineering Department Fall
Today Composing transformations 3D Transformations Homogeneous coordinates Intro to Viewing.
Epipolar Geometry. Two-view geometry Epipolar geometry 3D reconstruction F-matrix comp. Structure comp.
CGPage: 1 We can define a window as a rectangular region of the world coordinate space, and the viewport as a rectangular region of the device coordinate.
11.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 11 – 3D Graphics Transformation Pipeline: Modelling and Viewing Getting Started with OpenGL.
Transforming graphs of functions Graphs can be transformed by translating, reflecting, stretching or rotating them. The equation of the transformed graph.
Computer Graphics Inf4/MSc Computer Graphics Lecture 8 Transparency, Mirroring.
Defining the Viewing Coordinate System 3-D Graphics.
Transformation Geometry For Students. Transformation Geometry Transformation geometry is the study of figures that move under certain conditions. In other.
Solving 2-D Vectors Graphically Physics. Why? O You can and people have accurately represented a situation by drawing vectors to scale in order to recreate.
Computer Graphics - Viewing - Hanyang University Jong-Il Park.
OpenGL Computer Graphics Programming with Transformations.
A is at -1, and B is at -7. Find the point, T, so that T partitions A to B in a 2:1 ratio. Warm up.
1 Points, Vectors, Lines, Spheres and Matrices ©Anthony Steed
The Cartesian PLane Lets start graphing!. Introduction to x-y plane You learned about the basic (counting) number line back in elementary school: Later.
Defining Rotations, Reflections, and Translations ~ Adapted from Walch Education.
8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.
1GR2-00 GR2 Advanced Computer Graphics AGR Lecture 2 Basic Modelling.
2010©. Introduction Graphics Rendering Pipeline Architecture Application Stages Geometry Stages Rasterizer Stages.
The Three-Dimensional Coordinate System 11.1 JMerrill, 2010.
The year is Lying on his back, French mathematician René Descartes, watches a fly crawl across the ceiling. Suddenly, an idea comes to him. He visualizes.
7.1 Si23_03 SI23 Introduction to Computer Graphics Lecture 7 Introducing SVG Transformations on Elements.
Computer Graphics - Transformation - Hanyang University Jong-Il Park.
Chapter 4 Euclidean Vector Spaces 4.1 Euclidean n-Space 4.2 Linear Transformations from R n to R m 4.3 Properties of Linear Transformations R n to R m.
Everything you ever wanted to know about collision detection (and as much about collision response as I can figure out by Wednesday) By Ryan Schmidt,
Slope Problems. Slope Problem Examples Determine a value for x such that the line through the points has the given slope. Let's use the slope formula.
© 2016 SlidePlayer.com Inc. All rights reserved.