GRAFIKA KOMPUTER ~ M. Ali Fauzi.

Slides:



Advertisements
Similar presentations
OpenGL Computer Graphics
Advertisements

School of Computer Science University of Seoul. How can we create a window? How can we handle the events? What kind of objects can we render? How can.
1Computer Graphics Homogeneous Coordinates & Transformations Lecture 11/12 John Shearer Culture Lab – space 2
Computer Graphics 2D & 3D Transformation.
02/17/05CISC640/440 OpenGL Tutorial1 OpenGL Tutorial CISC 640/440 Computer Graphics TA: Qi Li/Mani Thomas
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.
The View Frustum and the Camera Lecture 19 Fri, Oct 10, 2003.
CHAPTER 4 Geometric Transformations: The Pipeline Vivian by Richard S. Wright Jr.
Based on slides created by Edward Angel
Viewing and Transformation
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Computer Viewing Ed Angel Professor of Computer Science, Electrical and Computer Engineering,
Viewing & Perspective CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
OpenGL (II). How to Draw a 3-D object on Screen?
CS148: Introduction to Computer Graphics and Imaging Midterm Review Session.
Introduction to OpenGL Pipeline From Programmer View Tong-Yee Lee.
Viewing & Perspective CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2005.
Computer Graphics (fall 2009)
The Viewing Pipeline (Chapter 4) 5/26/ Overview OpenGL viewing pipeline: OpenGL viewing pipeline: – Modelview matrix – Projection matrix Parallel.
GRAFIKA KOMPUTER ~ M. Ali Fauzi. Drawing 2 D Graphics.
2 COEN Computer Graphics I Evening’s Goals n Discuss the mathematical transformations that are utilized for computer graphics projection viewing.
Foundations of Computer Graphics (Fall 2012) CS 184, Lectures 13,14: Reviews Transforms, OpenGL
CAP4730: Computational Structures in Computer Graphics 3D Transformations.
Stages of Vertex Transformation To specify viewing, modeling, and projection transformations, you construct a 4 × 4 matrix M, which is then multiplied.
Computing & Information Sciences Kansas State University Lecture 19 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 19 of 42 William H. Hsu.
Computer Graphics Bing-Yu Chen National Taiwan University.
Computer Graphics I, Fall 2010 Computer Viewing.
Transformational Geometry CS418 Computer Graphics John C. Hart.
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.
Jens Krüger & Polina Kondratieva – Computer Graphics and Visualization Group computer graphics & visualization 3D Rendering Praktikum: Shader Gallery The.
Two-Dimensional Geometric Transformations A two dimensional transformation is any operation on a point in space (x, y) that maps that point's coordinates.
The Camera Analogy ► Set up your tripod and point the camera at the scene (viewing transformation) ► Arrange the scene to be photographed into the desired.
Chapters 5 2 March Classical & Computer Viewing Same elements –objects –viewer –projectors –projection plane.
Introduction to Computer Graphics: Viewing Transformations Rama C
Viewing and Projection
Lecture 7 Midterm Review. OpenGL Libraries gl: Basic OpenGL library, e.g. primitives. glu: OpenGL Utility library, a set of functions to create texture.
GL transformations-models. x' = x+t x y' = y+t y z' = z+t z t x t y s x =s y =s z t z uniform nonuniform?!!?? x' = x·s x y' =
Computer Graphic Creator: Mohsen Asghari Session 4 Fall 2014.
Some Notes on 3-D Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Friday, October 24, 2003.
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.
Coordinate Systems Lecture 20 Wed, Oct 15, Object Coordinates Each object has its own “local” coordinate system, called object coordinates. Normally.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
Introduction to 3-D Viewing Glenn G. Chappell U. of Alaska Fairbanks CS 381 Lecture Notes Monday, October 27, 2003.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Lecture 10 Geometric Transformations In 3D(Three- Dimensional)
School of Computer Science
Viewing.
Computer Viewing.
Isaac Gang University of Mary Hardin-Baylor
Prof. Lizhuang Ma Shanghai Jiao Tong University
3D Computer Graphics (3080/GV10) Week 5-6 Tutorial 3
2D Viewing Pipeline.
Transformation and Viewing
Chapters 5/4 part2 understanding transformations working with matrices
Computer Graphics (Spring 2003)
Projection in 3-D Glenn G. Chappell
Last Time Canonical view pipeline Projection Local Coordinate Space
University of New Mexico
Prof. Lizhuang Ma Shanghai Jiao Tong University
Geometrical Transformations
Computer Graphics Computer Viewing
Chapter 3 Viewing.
Transformations.
Translation in Homogeneous Coordinates
Presentation transcript:

GRAFIKA KOMPUTER ~ M. Ali Fauzi

Drawing 3D Graphics

3D TRANSFORMATION

Transformation Pipeline Vertex Modelview Matrix Projection Perspective Division Viewport Transformation Object Coordinates Eye Clip Normalized device Window GL_MODELVIEW mode glTranslate() glRotate() glScale() glLoadMatrix() glMultMatrix() gluLookAt() GL_PROJECTION mode glOrtho() gluOrtho2D() glFrustum() gluPerspective() glViewport()

Matrix Modes ~ ModelView Matrix (GL_MODELVIEW) These concern model-related operations such as translation, rotation, and scaling, as well as viewing transformations.

THE TRANSFORMATION

Translation The path is represented by a vector, called the translation or shift vector. P' = P + T tx ty tz x’ y’ z’ x y z = + New Position Current Position Translation Vector

Translation Translasi 3D -> 4D Translasi 2D -> 3D Koordinat Asal Koordinat Homogen

Scaling The transformation using Scale Matrix P' = S • P New Position Current Position

Scaling In Homogeneous Coordinate : P' = S • P New Position Scale Matrix Current Position

Rotation For 2D : P' = R . P New Position Rotation Matrix Current Position

Rotation For 2D :

Rotation 2D Rotation about an arbitrary axis (Rotasi pada sembarang sumbu (Xr,Yr) dengan sudut Ө) :

Rotation 3D Rotation, Roll y z x

Rotation 3D Rotation, Yaw y z x

Rotation 3D Rotation, Pitch y z x

sumbu putar sembarang titik (Ax,Ay,Az) Rotation 3D Rotation about an arbitrary axis (Rotasi pada sembarang sumbu (Ax,Ay,Az) dengan sudut Ө) sumbu putar sembarang titik (Ax,Ay,Az) y x z

Shearing 3D Shearing-x Shearing-y

Shearing 3D Shearing-z