Orthonormal Basis Cartesian Coordinate System – Unit vectors: i, j, k – Normalized to each other – Unique representation for each position!! – Convenient!

Slides:



Advertisements
Similar presentations
Defining the Viewing Coordinate System
Advertisements

Graphics Shapes. Setup for using graphics You have to import the graphics library You can use either “import graphics” or “from graphics import *” or.
Introduction to shapes
Shared Graphics Skills Cameras and Clipping Planes
The Cartesian Coordinate System
Scene Modeling for a Single View : Computational Photography Alexei Efros, CMU, Fall 2005 René MAGRITTE Portrait d'Edward James …with a lot of slides.
CS485/685 Computer Vision Prof. George Bebis
3-D Geometry.
Essentials of Interactive Computer Graphics: Concepts and Implementation K. Sung, P. Shirley, S. Baer Chapter 14 Chapter 14: The Camera.
Lecture 3 – Transformation And Coordinate Systems
A Novel 2D To 3D Image Technique Based On Object- Oriented Conversion.
CS 4731: Computer Graphics Lecture 11: 3D Viewing Emmanuel Agu.
Scene Modeling for a Single View : Computational Photography Alexei Efros, CMU, Spring 2010 René MAGRITTE Portrait d'Edward James …with a lot of.
Now Playing: Quicksand Under Carpet New Radiant Storm King from Leftover Blues: Released 2004.
X y z Point can be viewed as intersection of surfaces called coordinate surfaces. Coordinate surfaces are selected from 3 different sets.
Vectors: planes. The plane Normal equation of the plane.
Introduction to 3D Graphics Lecture 3: General Camera Model Anthony Steed University College London.
Introduction to 3D viewing 3D is just like taking a photograph!
CSE 681 Ray Tracing Geometry. The Camera Model Based on a simpile pin-hole camera model –Simplest lens model –Pure geometric optics – based on similar.
WP3 - 3D reprojection Goal: reproject 2D ball positions from both cameras into 3D space Inputs: – 2D ball positions estimated by WP2 – 2D table positions.
Viewing and Projections
Section 13.4 The Cross Product. Torque Torque is a measure of how much a force acting on an object causes that object to rotate –The object rotates around.
Fundamentals of Descriptive Geometry (Text Chapter 26)
Mathematical Foundations Sections A-1 to A-5 Some of the material in these slides may have been adapted from university of Virginia, MIT and Åbo Akademi.
Week 2 - Wednesday CS361.
CS559: Computer Graphics Lecture 9: Projection Li Zhang Spring 2008.
视觉的三维运动理解 刘允才 上海交通大学 2002 年 11 月 16 日 Understanding 3D Motion from Images Yuncai Liu Shanghai Jiao Tong University November 16, 2002.
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.
Geometric Camera Models
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
10/3/02 (c) 2002 University of Wisconsin, CS 559 Last Time 2D Coordinate systems and transformations.
 In mathematics, we use a grid to locate points..
CS 450: COMPUTER GRAPHICS PROJECTIONS SPRING 2015 DR. MICHAEL J. REALE.
OpenGL The Viewing Pipeline: Definition: a series of operations that are applied to the OpenGL matrices, in order to create a 2D representation from 3D.
Jinxiang Chai CSCE 441 Computer Graphics 3-D Viewing 0.
GRAPHING ON A COORDINATE PLANE. VOCABULARY Coordinate system- a system which uses one or more numbers or coordinates, to uniquely determine the position.
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.
A Photograph of two papers
CS5500 Computer Graphics April 23, Today’s Topic Details of the front-end of the 3D pipeline: –How to construct the viewing matrix? –How to construct.
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
Descriptive Geometry. Introduction  What is Descriptive Geometry? →It is the study of points, lines, and planes in space to determine their locations.
Advanced Computer Graphics CS32310 October 2012 H Holstein.
CS559: Computer Graphics Lecture 9: 3D Transformation and Projection Li Zhang Spring 2010 Most slides borrowed from Yungyu ChuangYungyu Chuang.
RAYTRACER PART I OF II.  Loosely based on the way we perceive the world around us (visually)  A (near) infinite number of photons are emitted by a light.
Fundamentals of Descriptive Geometry AT 301 Dr. Trent.
CSE 681 Brief Review: Vectors. CSE 681 Vectors Basics Normalizing a vector => unit vector Dot product Cross product Reflection vector Parametric form.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
A Photograph of two papers The Model: 2 papers – 8cm x 8cm and 5cm x 5cm The Camera – Simple pinhole – No focusing capability The Scene – Arrangements.
Rendering Pipeline Fall, 2015.
CSCE 441 Computer Graphics 3-D Viewing
Scene Modeling for a Single View
VECTORS APPLICATIONS NHAA/IMK/UNIMAP.
Ray Tracing Geometry CSE 681.
Ray Tracing Geometry CSE 681.
Introduction to the coordinate Plane
A Photograph of two papers
Notes 7-2 The Coordinate Plane.
Geometric Camera Models
Computer Graphics Lecture 20
Last Time Canonical view pipeline Projection Local Coordinate Space
MATH 1310 Section 1.1.
Orthogonal Base Cartesian Coordinate System Works in general:
Plotting Points Guided Notes
MATH 1310 Section 1.1.
Viewing Transformations II
MATH 1310 Section 1.1.
Maps one figure onto another figure in a plane.
Graphing on a Coordinate plane
Presentation transcript:

Orthonormal Basis Cartesian Coordinate System – Unit vectors: i, j, k – Normalized to each other – Unique representation for each position!! – Convenient! Works in general: – N dimension space ANY N normalized orthogonal vectors will do!! – Infinite number of Cartesian coordinate systems in 3D space!! But we already know this

Camera Space Orthonormal basis at the camera – View/Up/Side – V/U/W axis – All perpendicular Also known as: – Eye Space – View Space View Direction (V) Up Direction (U) Side Direction (W) Eye At

Recall: Scene Description Camera is defined by: – Eye, lookat, and UpVector Viewing Direction – Defined by Eye and At Notice: – UpVector is usually NOT perpendicular to View Direction!! – Easier for user to specify sent of “up” Eye At UpVector

Compute Camera Basis Viewing Direction (V) V = At - Eye Remember: – UpVector may not be perpendicular to V W = UpVector x V W is perpendicular to both UpVector and V V Eye At W UpVector

Compute Up Direction (U) U = V x W U, V, and W are perpendicular!! Normalize to form a Cartesian Coordinate! V Eye At W UpVector U

Eye Image Plane focus Recall: Image Plane (Scene XML) focus distance away from the Eye Resolution defined in the XML file to be M by N pixels Always perpendicular to the viewing direction V

focus Height fov Image Plane Eye Image Plane Height fov: fields of view – Is vertical angle Distance between Eye and Image Plane: focus Image Plane Height: Height = 2 * focus * tan (fov/2)

Height Width Image Plane Width Resolution: M by N – Aspect ratio = M/N Computed: Height Width = Aspect Ratio * Height

Cartesian Coordinate on Image Plane 2D, Requires – 2 Perpendicular – Unit Vectors Origin: Lower-Left Corner Remember – U, V, W from Camera Space Image plane perpendicular to V – U in the vertical direction of Image Plane – W in the horizontal direction of image plane! Lower Left Image Plane W U V U W

Image Plane Location Let Center = C C = Eye + focus * V focus Image Plane Eye C

Lower Left Corner Normalize: U, W Dimension: W x H Upper-Left Corner: Pul = C – (Width/2) * W + (Height/2) * U Upper Left (Pul) Image Plane C U W

Pixel Size: Image Resolution: – M by N Image Size: – Width by Height Dimension of each pixel – Width: pw = Width / M – Height: ph = Height / N Image Plane Pixels Pul

Pixel Location: Assume pixel indexing – Begin from upper left – a increase towards right – b increase towards down – pw: width of a pixel – ph: height of a pixel – U and W are normalized Pul is index [0][0] – Pixel[0][0] location = Pul Pixel[a][b] location is: Pab = Pul – (a * pw) * W – (b * ph) * U Pll Image Plane U W Index i Index j

Orthonormal Basis What is an orthonormal basis in 3D? T/F: Given a 3D room, there are four best unique orthonormal basis can we define, one at each of the corners.

Eye/Camera/View Space How does a computer graphics user specify the eye space In general when our users define the camera, can we expect the up vector to be perpendicular to the viewing direction? By convention, X/Y/Z-axes are mapped to Side vector is the cross product of: (order matters!!): Up vector is the cross product of: (order matters!!):