168 471 Computer Graphics, KKU. Lecture 41 The Computer Programming Laws Any given program, when running, is obsolete. Any given program costs more and.

Slides:



Advertisements
Similar presentations
UBI 516 Advanced Computer Graphics
Advertisements

1 Computer Graphics Chapter 6 2D Transformations.
Math Review Guest Lecturer: Michiel van de Panne Week 1, Wed Jan 9
Chapter 3 Vectors.
Transformations II Week 2, Wed Jan 17
Chapter 4.1 Mathematical Concepts
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CSCE 590E Spring 2007 Basic Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
Vectors.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
University of Texas at Austin CS 378 – Game Technology Don Fussell CS 378: Computer Game Technology 3D Engines and Scene Graphs Spring 2012.
Automatic Camera Calibration
2IV60 Computer Graphics Basic Math for CG
Geometric Intuition Randy Gaul. Vectors, Points and Basis Matrices Rotation Matrices Dot product and how it’s useful Cross product and how it’s useful.
Chapter 3 Vectors.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Basic graphics. ReviewReview Viewing Process, Window and viewport, World, normalized and device coordinates Input and output primitives and their attributes.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Math Primer for CG Ref: Interactive Computer Graphics, Chap. 4, E. Angel.
Recap of linear algebra: vectors, matrices, transformations, … Background knowledge for 3DM Marc van Kreveld.
Chapter 3 Vectors Coordinate Systems Used to describe the position of a point in space Coordinate system consists of A fixed reference point called.
Geometric Transformation. So far…. We have been discussing the basic elements of geometric programming. We have discussed points, vectors and their operations.
Computer Graphics in Java1 Objects and Viewers Two basic entities (one object seen from two different positions) :
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.
Computational Biology, Part E Basic Principles of Computer Graphics Robert F. Murphy Copyright  1996, 1999, 2000, All rights reserved.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
1 Math Review Coordinate systems 2-D, 3-D Vectors Matrices Matrix operations.
CO1301: Games Concepts Dr Nick Mitchell (Room CM 226) Material originally prepared by Gareth Bellaby.
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Chapter 3 Vectors. Coordinate Systems Used to describe the position of a point in space Coordinate system consists of a fixed reference point called the.
Chapter 3 Vectors. Coordinate Systems Used to describe the position of a point in space Coordinate system consists of a fixed reference point called the.
©College of Computer and Information Science, Northeastern University CS 4300 Computer Graphics Prof. Harriet Fell Fall 2012 Lecture 12 – October 1, 2012.
Computer Graphics, KKU. Lecture 51 Transformations Given two frames in an affine space of dimension n, we can find a ( n+1 ) x ( n +1) matrix that.
Jinxiang Chai CSCE441: Computer Graphics 3D Transformations 0.
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
Background Mathematics Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Affine Transformations.
Chapter 3 Vectors. Vector quantities  Physical quantities that have both numerical and directional properties Mathematical operations of vectors in this.
Chapter 3 Vectors. Coordinate Systems Used to describe the ___________of a point in space Coordinate system consists of – A fixed _____________point called.
1 Graphics CSCI 343, Fall 2015 Lecture 10 Coordinate Transformations.
Geometric Transformations
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2016 Tamara Munzner Math Basics Week 1, Fri.
Computer Graphics Matrices
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Chapter 5 More Work with Matrices
Coordinate Systems Lecture 1 Fri, Sep 2, The Coordinate Systems The points we create are transformed through a series of coordinate systems before.
2/28/2016 CS 551 / 645: Introductory Computer Graphics Framebuffer Mathematical Foundations The Rendering Pipeline.
Instructor: Mircea Nicolescu Lecture 9
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2005 Tamara Munzner Math Review Week 1, Fri.
Chapter 3 Lecture 5: Vectors HW1 (problems): 1.18, 1.27, 2.11, 2.17, 2.21, 2.35, 2.51, 2.67 Due Thursday, Feb. 11.
4. Affine transformations. Reading Required:  Watt, Section 1.1. Further reading:  Foley, et al, Chapter  David F. Rogers and J. Alan Adams,
David Luebke6/12/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Introduction; Mathematical Foundations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
Lecture 1 Linear algebra Vectors, matrices. Linear algebra Encyclopedia Britannica:“a branch of mathematics that is concerned with mathematical structures.
COMPUTER GRAPHICS AND LINEAR ALGEBRA AN INTRODUCTION.
3D Ojbects: Transformations and Modeling. Matrix Operations Matrices have dimensions: Vectors can be thought of as matrices: v=[2,3,4,1] is a 1x4 matrix.
CA 302 Computer Graphics and Visual Programming
Graphics Fundamentals
Lecture 03: Linear Algebra
3D Transformation CS380: Computer Graphics Sung-Eui Yoon (윤성의)
CSE 411 Computer Graphics Lecture #2 Mathematical Foundations
Linear Algebra Lecture 23.
Transformations 2 University of British Columbia
Presentation transcript:

Computer Graphics, KKU. Lecture 41 The Computer Programming Laws Any given program, when running, is obsolete. Any given program costs more and takes longer. If a program is useful, it will have to be changed. If a program is useless, it will have to be documented. Any given program will expand to fill all available memory. The value of a program is proportional to the weight of its output. Program complexity grows until it exceeds the capability of the programmer who must maintain it.

Computer Graphics, KKU. Lecture 42 Points One of the fundamental objects in 3D space that has position. The basis for all operation in computer graphics. Distinguished from each other with its position. Drawn as dots. Denoted by capitalized bold letters such as P and Q. If the Cartesian coordinate system is chosen, we represent points componentwise by utilizing parenthesis e.g ( x,y,z ).

Computer Graphics, KKU. Lecture 43 Trigonometry

Computer Graphics, KKU. Lecture 44 Polar Coordinates

Computer Graphics, KKU. Lecture 45 Parametric Functions

Computer Graphics, KKU. Lecture 46 Parametric Lines

Computer Graphics, KKU. Lecture 47 Parametric Circles

Computer Graphics, KKU. Lecture 48 Plotting Parametric Functions

Computer Graphics, KKU. Lecture 49 The fundamental 3D space objects like points. Has both magnitude and direction. But positionless. Drawn as lines segments with arrow. Denoted by lower case letters with an arrow above such as we represent vectors componentwise by utilizing brackets e.g. For each pair of point P and Q, there exists a unique vector such that Vectors

Computer Graphics, KKU. Lecture 410 Vectors

Computer Graphics, KKU. Lecture 411 Properties of Vectors

Computer Graphics, KKU. Lecture 412 Properties of Vectors (Cont.)

Computer Graphics, KKU. Lecture 413 “Multiplying” Vectors

Computer Graphics, KKU. Lecture 414 Vector Projection

Computer Graphics, KKU. Lecture 415 Planes

Computer Graphics, KKU. Lecture 416 Planes (Cont.)

Computer Graphics, KKU. Lecture 417 Matrices

Computer Graphics, KKU. Lecture 418 Matrix Multiplication

Computer Graphics, KKU. Lecture 419 Matrices (Cont.)

Computer Graphics, KKU. Lecture 420 Matrix Inversion

Computer Graphics, KKU. Lecture 421 Cartesian coordinate system Frame-based coordinate system Device space Screen Space Image Space Object Space World Space Coordinate Systems

Computer Graphics, KKU. Lecture 422 Cartesian coordinate system Right-hand system z xy x z y

Computer Graphics, KKU. Lecture 423 Cartesian coordinate system(Cont.) In the computer graphics community In computer graphics Right-hand system z x y x z y

Computer Graphics, KKU. Lecture 424 Frame-based coordinate system Consists of an origin and linearly independent vectors

Computer Graphics, KKU. Lecture 425 The actual coordinate system by which points are plotted on the graphics device. Measured in pixels On SGI machines –(0,0) is the lower left corner of a window. –X value increases to the right. –Y value increases upward. On Window platform –(0,0) is the upper left corner of a window. –X value increases to the right. –Y value increase downward. Device Space x x y y

Computer Graphics, KKU. Lecture 426 Screen Space Defined to be the square on the xy plane. Mapped to device space by most drivers for specific graphics devices

Computer Graphics, KKU. Lecture 427 Image Space Used in 3-D system to allow for depth calculations. Defined by Points in this space are mapped onto screen space by projecting them onto the plane. For example, any point in image space will be protected to the center of the display screen.

Computer Graphics, KKU. Lecture 428 World Space The coordinate system of the scene Must be projected into image space for viewing.

Computer Graphics, KKU. Lecture 429 Object Space Localized system of an object being created. After objects are created, about the world space they can be –transformed –duplicated –moved –.etc

Computer Graphics, KKU. Lecture 430 Affine Space Made up of points and vectors In affine space,

Computer Graphics, KKU. Lecture 431 Affine Space (Cont.) Vectors can be added, but points cannot. Vectors can be scaled, but point cannot. That is

Computer Graphics, KKU. Lecture 432 What is Affine Combination? If are points andare scalars such that then is defined to be the point

Computer Graphics, KKU. Lecture 433 Affine Combination of 2 Points Let P 1 and P 2 be points in an affine space, Consider the expression This P point represents a point on the line that passes through P 1 and P 2 Note that if then P is somewhere on the line segment joining P 1 and P 2.

Computer Graphics, KKU. Lecture 434 Affine Combination of 3 Points Consider three points P 1 P 2 and P 3 that form a triangle, a point P can be defined by or then the point will be within (or on the boundary) of the triangle. If

Computer Graphics, KKU. Lecture 435 Convex VS Non-Convex Convex SetNon-Convex Set

Computer Graphics, KKU. Lecture 436 Coordinates of a point in the frame Given a frame, a point P can be written asWhere O is an origin of the frame and so the point can be written uniquely as The set of values are the coordinates of P relative to the frame.

Computer Graphics, KKU. Lecture 437 Cartesian Frames The 2D standard Cartesian frame, denoted as, has A point P = will has the coordinate (x,y) relative to this frame A Cartesian frame with any dimension consists of (0,0,…..,0) as an origin,,…, as basis vectors

Computer Graphics, KKU. Lecture 438 Examples Given the frame which has the origin (0,0) and the vectors u = and v =, the point P that has its coordinate (5,3) in this frame, can be written as which is the Cartesian coordinate (8,3). or

Computer Graphics, KKU. Lecture 439 Matrix Representation of Points Given a frame in an affine space, we can write a point P uniquely as or

Computer Graphics, KKU. Lecture 440 Matrix Representation of Vectors Given a frame in an affine space, we can write a vector v uniquely as or

Computer Graphics, KKU. Lecture 441 Converting between Frames Suppose that we have the point P, with coordinates (3,2) in the frame. What are the coordinates of the point in the frame ? Consider the two frames and _ where

Computer Graphics, KKU. Lecture 442