School of Computer Science

Slides:



Advertisements
Similar presentations
Computer Graphics 2D & 3D Transformation.
Advertisements

Java ThreadsGraphics Programming Graphics Programming: Windows, Viewports & Clipping.
Using GLU/GLUT Objects GLU/GLUT provides very simple object primitives glutWireCube glutWireCone gluCylinder glutWireTeapot.
Computer Graphic Creator: Mohsen Asghari Session 2 Fall 2014.
GRAFIKA KOMPUTER ~ M. Ali Fauzi.
1 Computer Graphics Chapter 8 3D Transformations.
1 Computer Graphics Chapter 6 2D Transformations.
CMPE 466 COMPUTER GRAPHICS
CHAPTER 4 Geometric Transformations: The Pipeline Vivian by Richard S. Wright Jr.
1 3D modelling with OpenGL Brian Farrimond Robina Hetherington.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Computer Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
1 Lecture 8 Clipping Viewing transformations Projections.
OpenGL (II). How to Draw a 3-D object on Screen?
1 Chapter 5 Viewing. 2 Perspective Projection 3 Parallel Projection.
CHAPTER 7 Viewing and Transformations © 2008 Cengage Learning EMEA.
2D Transformations. World Coordinates Translate Rotate Scale Viewport Transforms Hierarchical Model Transforms Putting it all together.
Viewing & Perspective CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2005.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
TWO DIMENSIONAL GEOMETRIC TRANSFORMATIONS CA 302 Computer Graphics and Visual Programming Aydın Öztürk
The Viewing Pipeline (Chapter 4) 5/26/ Overview OpenGL viewing pipeline: OpenGL viewing pipeline: – Modelview matrix – Projection matrix Parallel.
Two Dimensional Viewing
Geometric Transformations Jehee Lee Seoul National University.
Image Synthesis Rabie A. Ramadan, PhD 2. 2 Java OpenGL Using JOGL: Using JOGL: Wiki: You can download JOGL from.
Geometric transformations The Pipeline
Computer Graphics. Requirements Prerequisites Prerequisites CS 255 : Data Structures CS 255 : Data Structures Math 253 Math 253 Experience with C Programming.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 14 Going-through.
Metrology 1.Perspective distortion. 2.Depth is lost.
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
Computer Graphics Bing-Yu Chen National Taiwan University.
Computer Graphics I, Fall 2010 Computer Viewing.
OpenGL: Introduction Yanci Zhang Game Programming Practice.
Viewing CS418 Computer Graphics John C. Hart. Graphics Pipeline Homogeneous Divide Model Coords Model Xform World Coords Viewing Xform Still Clip Coords.
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.
Mark Nelson 3d projections Fall 2013
Computer Graphics I, Fall 2010 OpenGL Transformations.
1/50 CS148: Introduction to Computer Graphics and Imaging Transforms CS148: Introduction to Computer Graphics and Imaging Transforms.
1 Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 OpenGL Transformations.
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
Geometric Transformations Sang Il Park Sejong University Many slides come from Jehee Lee’s.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Classical Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
1 Geometric Transformations-II Modelling Transforms By Dr.Ureerat Suksawatchon.
Geometric Transformations. Transformations Linear transformations Rigid transformations Affine transformations Projective transformations T Global reference.
CS5500 Computer Graphics March 20, Computer Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts.
1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley 2012 Computer Viewing Isaac Gang University of Mary Hardin-Baylor.
Jinxiang Chai CSCE441: Computer Graphics Coordinate & Composite Transformations 0.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
Transformations. Modeling Transformations  Specify transformations for objects  Allows definitions of objects in own coordinate systems  Allows use.
Lecture 9 From Vertices to Fragments. Objectives Introduce basic implementation strategies Clipping Rasterization hidden-surface removal.
OpenGL Matrices and Transformations Angel, Chapter 3 slides from AW, Red Book, etc. CSCI 6360/4360.
Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
Viewing.
School of Computer Science
Computer Viewing.
Isaac Gang University of Mary Hardin-Baylor
Rendering Pipeline Aaron Bloomfield CS 445: Introduction to 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.
Computer Graphics (Spring 2003)
Transformations in OpenGL
CSCE441: Computer Graphics Coordinate & Composite Transformations
University of New Mexico
Computer Graphics 3Practical Lesson
with Applications in Computer Graphics
Computer Graphics Computer Viewing
Transformations my dear Watson.
THREE-DIMENSIONAL VIEWING
Computer Viewing Ed Angel Professor Emeritus of Computer Science
컴퓨터 그래픽스를 위한 기하학적 기초 (Line Geometry for Computer Graphics)
Presentation transcript:

School of Computer Science Computer Graphics (fall,2010) School of Computer Science University of Seoul Minho Kim

Chapter 3 Additional Drawing Tools

What to Learn Orthographic projection Viewport Homogeneous coordinate systems Matrix stack (Clipping) Representations of curves

sample03.c To change the (orthographic 2D) camera setting dynamically – translation & zooming How can we rotate the camera? What types of cameras are supported? What is the default camera setting? What does the projection matrix do? How can we make the image flipped vertically/horizontally? How can we achieve the same effect using glMultMatrix?

Matrix Stacks The top element denotes current matrix state Four stacks: modelview, projection, texture, and color Different (minimum) stack depth for each Stored in column-major format Operations glLoadIdentity, glLoadMatrix, glPushMatrix, glPopMatrix, glMultMatrix, etc. Can handle hierarchical transformation (modelview) – How?

Homogeneous Coordinate System Represents a 3D vectors/points as a 4-tuple: (x,y,z,w) Corresponds to the vectors/points in the Cartesian coordinate system as (x,y,z,w)=(x/w,y/w,z/w) w=0 for vectors and w≠0 for points Can represent a translation as a matrix. Can represent a perspective projection. More in Chapter 4

Clipping How to (efficiently) clip a line segment against an axis-aligned rectangle? → “Cohen-Sutherland clipper”

Representations of Curves Implicit form “Set of points (x,y) satisfying the equation f(x,y)=0” Ex) x2+y2-r2=0 Parametric form “Trace of points (x(t),y(t)) as t changes” Ex) x(t)=r cos(t), y(t)=r sin(t) Pros and cons? How can we convert one to another? How can we plot them? More in Chapter 4