Camera. Content Coordinate systems and transformations Viewing coordinates Coordinate transformation matrix Projections Window and viewport Acknowledgments:

Slides:



Advertisements
Similar presentations
GR2 Advanced Computer Graphics AGR
Advertisements

Three Dimensional Viewing
Three-Dimensional Viewing Sang Il Park Sejong University Lots of slides are stolen from Jehee Lee’s.
Three Dimensional Modeling Transformations
CMPE 466 COMPUTER GRAPHICS Chapter 8 2D Viewing Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth Edition by Donald Hearn,
CS 352: Computer Graphics Chapter 5: Viewing. Interactive Computer GraphicsChapter Overview Specifying the viewpoint Specifying the projection Types.
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
Viewing Transformations
3D Concepts UNIT 3. 3-D Coordinate Spaces Remember what we mean by a 3-D coordinate space x axis y axis z axis P y z x Right-Hand Reference System.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
Introduction to 3D viewing 3D is just like taking a photograph!
Computer Graphics (fall 2009)
UBI 516 Advanced Computer Graphics Three Dimensional Viewing
Advanced Computer Graphics Three Dimensional Viewing
Two Dimensional Viewing
3D Viewing.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
Computer Graphics 2 – Dimensional Viewing.
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Computer Graphics Bing-Yu Chen National Taiwan University.
1 General Camera ©Anthony Steed Overview n Simple camera is limiting and it is necessary to model a camera that can be moved n We will define.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
SCARA – Forward Kinematics
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Introduction to Computer Graphics Chapter 6 – 2D Viewing Pt 1 1.
Basic Projections 2D to 3D
2003CS Hons RW778 Graphics1 Chapter 7: Three-Dimensional Viewing Chapter 5: Camera with parallel projection Chapter 5: Camera with parallel projection.
Graphics Graphics Korea University kucg.korea.ac.kr Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
Three-Dimensional Viewing
Three-Dimensional Viewing Hearn & Baker Chapter 7
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Graphics CSCI 343, Fall 2015 Lecture 16 Viewing I
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
Taxonomy of Projections FVFHP Figure Taxonomy of Projections.
Viewing and Projection
CS552: Computer Graphics Lecture 6: Viewing in 2D.
CS552: Computer Graphics Lecture 11: Orthographic Projection.
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
Viewing and Projection. The topics Interior parameters Projection type Field of view Clipping Frustum… Exterior parameters Camera position Camera orientation.
Perspective View Volume View Volume Far Near Window Far Near Window Center of Projection Center of Projection (a) Original Orientation (b) After Transformation.
Chapter: Viewing.
Viewing. Classical Viewing Viewing requires three basic elements - One or more objects - A viewer with a projection surface - Projectors that go from.
Outline 3D Viewing Required readings: HB 10-1 to 10-10
3D Viewing and Clipping Ming Ouhyoung 歐陽明 Professor Dept. of CSIE and GINM NTU.
Chapter 11 Three-Dimensional Geometric and Modeling Transformations
Three Dimensional Viewing
Viewing Viewing and viewing space (camera space)
Rendering Pipeline Fall, 2015.
University of North Carolina at Greensboro
3D Viewing cgvr.korea.ac.kr.
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to Graphics
Computer Graphics Viewing
CSCE 441 Computer Graphics 3-D Viewing
2D Viewing Pipeline.
3D Transformation Pipeline
CENG 477 Introduction to Computer Graphics
Three Dimensional Viewing
OpenGL 2D Viewing Pipeline
Computer Graphics (Spring 2003)
Three-Dimensional Viewing
3D Graphics.
Chap 3 Viewing Pipeline Reading:
Viewing (Projections)
THREE-DIMENSIONAL VIEWING II
THREE-DIMENSIONAL VIEWING
Presentation transcript:

Camera

Content Coordinate systems and transformations Viewing coordinates Coordinate transformation matrix Projections Window and viewport Acknowledgments: To Alex García-Alonso who provided material for these slides (

Projection We want to project the 3D space into a plane Definition of camera and projection with geometric transformations of the coordinate systems

Coordinate systems and transformations Modeling coordinates (local)‏ Modeling transformation World coordinates (world)‏ Viewing transformation Viewing coordinates (view)‏ Projection transformation Device coordinates (screen)‏

World coordinates It unifies the coordinate systems of all the objects of the scene Animation is achieved with transformations along time Lights and cameras are defined in world coordinates The properties of the camera define the viewing coordinates

Viewing coordinates Camera, eye, view coordinates They are the coordinates in the camera system They are defined by position and orientation of the camera They can include the view volume

Definition of viewing reference frame It is defined with the parameters of the camera: –View point –Direction of viewing –View-up vector V They define the three dimensional viewing- coordinate frame

Elements of the viewing coordinate frame Point C and UVN vectors –C is the view point –N is the direction of viewing –V is the view-up vector (Y axis on the plane)‏ –U is normal to N and V (X axis on plane)‏ V C xwxw ywyw zwzw U N. A

Rotation transformation The transfomation matrix is formed with the unit vectors UVN in world coordinates as rows Hearn & Baker, A V C U N

Transformation matrix to viewing coordinates Composition of translation and rotation T view = R T It is a left-handed system (X axis to the left)‏ 100 -C x 010 -C y T=001 -C z 0001 u x u y u z 0 v x v y v z 0 R= n x n y n z

Types of projections Parallel projection –orthogonal –oblique (projection not perpendicular to the view plane)‏ Perspective projection

Parallel projection Orthogonal projection in view coordinates: the z coordinate is eliminated T=

Perspective projection Man Drawing a Lute, Woodcut, 1525, Albrecht Dürer.

Features of perspective projection More real: it is the projection that happens in the eye and in a camera Parallel lines in the scene converge in a vanishing point The quantity of vanishing points is defined by the quantity of parallel lines that intersect with the projection plane

Transformations of the perspective projection z y (y v, z v )‏.. ysys d X1000x v Y0100y v Z0010z v w001/d11 With a matrix expression:

Other issues Visualization volume –Sides of the pyramid –Near plane and far plane (near and far)‏ Hide back sides Np: normal of the polygon, N: vector of visualization

Camera movements Of the camera position –Around the camera axis –Around the scene axis Of the point of attention Simultaneous of both Object in hand Walking and flying

Airplane analogy Rotation around X: Pitch (cabeceo)‏ Rotation around Y: Yaw (giro)‏ Rotation around Z: Roll (balanceo)‏

Cosmoplayer controls Movement controls Examine controls

Windows of presentation Object Window The projection of the camera create 2 dimension coordinates The device coordinates are independent of the scene coordinates It is necessary to transfer from window coordinates to the device coordinates

Window and viewport xw min xw max yw min yw max Window rectangle yv min yv max xv min xv max Viewport rectangleScreen image + = Image with distortion

Transformation to viewport To calculate the coordinates in viewport (xv, yv) of a point in window coordinates (xw, yw) (previously (x s, y s ))‏ The existing relations are: yv min yv max xv min xv max (xv, yv)‏ xw min xw max yw min yw max (xw, yw)‏

Issues about transformations Distortion, it is caused by the different rate of window and viewport –allow –Avoid through change in window or viewport Clipping –Cutting the segments and polygons that intersect the window