CS148: Introduction to Computer Graphics and Imaging Midterm Review Session.

Slides:



Advertisements
Similar presentations
Today Composing transformations 3D Transformations
Advertisements

MAT 594CM S2010Fundamentals of Spatial ComputingAngus Forbes Overview Goals of the course: 1. to introduce real-time 3D graphics programming with openGL.
CLASS 4 CS770/870. Translation Scale Multiplying Matrices. The R C rule What happens when we do two translates? What happens when we do two scales?
Graphics Pipeline.
GRAFIKA KOMPUTER ~ M. Ali Fauzi.
Sep 21, Fall 2005ITCS4010/ Computer Graphics Overview Color Displays Drawing Pipeline.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Introduction to Computer Graphics Ed Angel Professor of Computer Science, Electrical and.
CS148: Introduction to Computer Graphics Final Review Session.
Sep 21, Fall 2006IAT 4101 Computer Graphics Overview Color Displays Drawing Pipeline.
IAT 3551 Computer Graphics Overview Color Displays Drawing Pipeline.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Models and Architectures Ed Angel Professor of Computer Science, Electrical and Computer.
Surface Rendering With OpenGL CS460 Project by Rui Yu 11/30/03.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
3D Rendering with JOGL Introduction to Java OpenGL Graphic Library By Ricardo Veguilla
Foundations of Computer Graphics (Fall 2012) CS 184, Lecture 2: Review of Basic Math
Basic Graphics Concepts Day One CSCI 440. Terminology object - the thing being modeled image - view of object(s) on the screen frame buffer - memory that.
Viewing and Projections
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
1 Computer Graphics Week3 –Graphics & Image Processing.
INTRO TO COMPUTER GRAPHICS TEXT EDWARD ANGEL: EDITION 5 CS770/870
The Viewing Pipeline (Chapter 4) 5/26/ Overview OpenGL viewing pipeline: OpenGL viewing pipeline: – Modelview matrix – Projection matrix Parallel.
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
MIT EECS 6.837, Durand and Cutler Graphics Pipeline: Projective Transformations.
OpenGL and Parametric Curves Advanced Multimedia Technology: Computer Graphics Yung-Yu Chuang 2005/12/21 with slides by Brian Curless, Zoran Popovic, Robin.
CSC 461: Lecture 3 1 CSC461 Lecture 3: Models and Architectures  Objectives –Learn the basic design of a graphics system –Introduce pipeline architecture.
CS 480/680 Computer Graphics Image Formation Dr. Frederick C Harris, Jr.
Foundations of Computer Graphics (Fall 2012) CS 184, Lectures 13,14: Reviews Transforms, OpenGL
Homogeneous Form, Introduction to 3-D Graphics Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 20,
1 Introduction to Computer Graphics SEN Introduction to OpenGL Graphics Applications.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 CS4610/7610: Introduction to Computer Graphics.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Lecture 6: 3D graphics Concepts 1  Principles of Interactive Graphics  CMSCD2012  Dr David England, Room 718,  ex 2271 
1Computer Graphics Lecture 4 - Models and Architectures John Shearer Culture Lab – space 2
MAE152 Computer Graphics for Scientists and Engineers Fall 2003 Final Exam Review.
MAE 152 Computer Graphics for Scientists and Engineers Fall 2003 Dr. Prashant V. Mahajan Senior Research Scientist AValonRF, Inc., El Cajon, CA.
OpenGL: Introduction Yanci Zhang Game Programming Practice.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
1/50 CS148: Introduction to Computer Graphics and Imaging Transforms CS148: Introduction to Computer Graphics and Imaging Transforms.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
1 Angel: Interactive Computer Graphics5E © Addison- Wesley 2009 Image Formation Fundamental imaging notions Fundamental imaging notions Physical basis.
Introduction to Computer Graphics: Viewing Transformations Rama C
CS559: Computer Graphics Final Review Li Zhang Spring 2010.
Honours Graphics 2008 Session 2. Today’s focus Vectors, matrices and associated math Transformations and concatenation 3D space.
Lecture 7 Midterm Review. OpenGL Libraries gl: Basic OpenGL library, e.g. primitives. glu: OpenGL Utility library, a set of functions to create texture.
CS 445 / 645: Introductory Computer Graphics Review.
Introduction to Image Processing Course Notes Anup Basu, Ph.D. Professor, Dept of Computing Sc. University of Alberta.
Chapter 1 Graphics Systems and Models Models and Architectures.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Models and Architectures 靜宜大學 資訊工程系 蔡奇偉 副教授 2012.
GLSL Review Monday, Nov OpenGL pipeline Command Stream Vertex Processing Geometry processing Rasterization Fragment processing Fragment Ops/Blending.
Introduction to 3-D Viewing Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 27, 2003.
Computer Graphics (Fall 2003) COMS 4160, Lecture 5: OpenGL 1 Ravi Ramamoorthi Many slides courtesy Greg Humphreys.
Computer Graphics Overview
- Introduction - Graphics Pipeline
School of Computer Science
Computer Graphics.
CS 445 / 645 Introduction to Computer Graphics
CS4610/7610: Introduction to Computer Graphics
Modeling 101 For the moment assume that all geometry consists of points, lines and faces Line: A segment between two endpoints Face: A planar area bounded.
3D Graphics Rendering PPT By Ricardo Veguilla.
CS451Real-time Rendering Pipeline
Models and Architectures
Models and Architectures
Models and Architectures
Introduction to Computer Graphics with WebGL
Computer Graphics (Spring 2003)
Projection in 3-D Glenn G. Chappell
Announcements Midterm out today Project 1 demos.
Models and Architectures
Models and Architectures
Presentation transcript:

CS148: Introduction to Computer Graphics and Imaging Midterm Review Session

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Outline Midterm info Review of topics Drawing in OpenGL Geometry: points, lines, vectors Transforms and coordinate systems Fonts/typography Splines Input devices and interaction Color Cameras and perspective

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Midterm info Time: Tue, Feb 13th at 7pm Location: Building 260, Rm 113 Duration: 2 hours Closed book Consists of a few (4 or 5) multi-part questions All material through last lecture (cameras) Strongly emphasized: material on assignments Focus on: material from lectures Also covered: material from readings

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Drawing in OpenGL OpenGL primitives glBegin/glEnd Double buffering GLUT events display reshape keyboard

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Geometry Dot product Cross product What are orthonormal vectors? Can you add two points? What do you get when you add a vector to a point?

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Geometry Line defined by (x1, y1) and (x2, y2) What is parametric form? What is implicit form? Which side of the line is point P on?

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Think about them in two ways Applying to object Applying to coordinate axes Order matters

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – Apply to object Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – Apply to object Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – Apply to coordinate system Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – Apply to coordinate system Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – Apply to coordinate system Translate(1,1) Rotate(45 O )

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – order matters Translate(1,0) Rotate(45 O ) Translate(1,0)

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms – order matters Scale(2,2) Translate(0,1) Scale(2,2)

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Homogeneous coordinates Transforms as matrices

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Homogeneous coordinates Transforms as matrices glScalef(2.0, 3.0) No change glTranslatef(1.0, 1.0) glRotatef(60.0, 0.0, 0.0, 1.0) gluOrtho (0, 200, 0, 200,-1.0, 1.0)

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Some volume of coordinate space is viewable on screen. Orthographic projection glOrtho/gluOrtho2D Perspective projection gluPerspective glFrustum

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Transforms Transforms implemented as matrix vector multiplications glTranslate glRotate glScale glRotate glScale glRotate glTranslate gluPerspective glViewport Modeling transform (object space to world space) Viewing transform (world space to camera space) Projection transform (camera space to clip space) (to window coordinates) [vertex V] Ex: (1,0) in object space M1M2 M3 M4 M5M6M9 … = Vertex position in window= (vx,vy)

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Typography Font units Terminology Character map Glyphs + glyph metrics Kerning Leading

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Interpolation Have discrete set of points Want continuous function going through points

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Interpolation Bilinear interpolation Barycentric interpolation V3V3 V2V2 V1V1 33 22 11 V V =  1 V 1 +  2 V 2 +  3 V 3  1 +  2 +  3 = 1

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Interpolation Want curve p(t) to go through all control points C i

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Cubic splines Basis functions (B i ’s) are cubic polynomials Different basis functions yield splines with different properties Hermite Splines Catmull-Rom Splines Bezier Splines

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Input devices The user presses a key. What happens?

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Input devices The user presses a key. What happens? Scan code (make and break codes) Virtual key code Glyph index Glyph

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Input devices How does a mouse work? What is quadrature encoding? Joystick input Axes/buttons/D-pads

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Interaction Polling vs. events Events Event loop Event queues Callbacks (event handlers) Associating events with objects Propagating events Model-view-controller pattern

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Physics of light Energy from source distributed across many wavelengths: S( ) Units: Watts

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Physics of light Adding light L( ) = E 1 ( ) + E 2 ( ) Filtering light L( ) = T( )E( ) Sensor Response

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Color perception What color do we perceive from E( )? Explain statement: humans have trichromatic color vision Rods and Cones

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Color perception What is the CIEXYZ color space? Why is the region within the spectral locus the span of all observable colors? Luminance Think: Response of rods to E( ) Units = lumens Lightness = Luminance 1/3

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Cameras and Lenses Pinhole camera film f x’ (x,z) pinhole Field of view

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Cameras and Lenses Pinhole camera film f x’ (x,z) pinhole Field of view

CS148 Midterm ReviewPat Hanrahan, Winter 2007 Cameras and Lenses Focal length How does is correspond to zoom? Depth of field Can a pinhole camera produce depth of field effects? Bayer mosaic