Midterm Review Ceng 477 Introduction to Computer Graphics Computer Engineering METU.

Slides:



Advertisements
Similar presentations
3D Transformations Assist. Prof. Dr. Ahmet Sayar
Advertisements

Computer Graphics: 3D Transformations
Principles of Computer-Aided Design and Manufacturing Second Edition 2004 ISBN Author: Prof. Farid. Amirouche University of Illinois-Chicago.
Three Dimensional Modeling Transformations
CMPE 466 COMPUTER GRAPHICS Chapter 8 2D Viewing Instructor: D. Arifler Material based on - Computer Graphics with OpenGL ®, Fourth Edition by Donald Hearn,
CMPE 466 COMPUTER GRAPHICS
3-D Geometry.
Computer Graphics University of Palestine Dr. Sana’a Wafa Al-Sayegh
Graphics Pipeline Rasterization CMSC 435/634. Drawing Terms Primitive – Basic shape, drawn directly – Compare to building from simpler shapes Rasterization.
April Geometric Transformations for Computer Graphics Shmuel Wimer Bar Ilan Univ., School of Engineering.
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
Whiteboardmaths.com © 2011 All rights reserved
COS 397 Computer Graphics Svetla Boytcheva AUBG, Spring 2013.
Basics of Rendering Pipeline Based Rendering –Objects in the scene are rendered in a sequence of steps that form the Rendering Pipeline. Ray-Tracing –A.
Computer Graphics Panos Trahanias ΗΥ358 Spring 2009.
1 CMT Fundamentals of Computer Graphics Revision Dr. Xiaohong Gao BG---Room 2C23 Week 11.
2D Transformation of Graphics
Computer Graphics World, View and Projection Matrices CO2409 Computer Graphics Week 8.
Two Dimensional Viewing
Graphics Pipeline Rasterization CMSC 435/634. Drawing Terms Primitive – Basic shape, drawn directly – Compare to building from simpler shapes Rasterization.
CS 325 Introduction to Computer Graphics 02 / 17 / 2010 Instructor: Michael Eckmann.
Geometric Transformations
Graphics Graphics Korea University cgvr.korea.ac.kr 3D Viewing 고려대학교 컴퓨터 그래픽스 연구실.
Foundations of Computer Graphics (Fall 2012) CS 184, Lectures 13,14: Reviews Transforms, OpenGL
OpenGL Conclusions OpenGL Programming and Reference Guides, other sources CSCI 6360/4360.
Geometry My great concern is not whether you have failed, but whether you are content with your failure. Abraham Lincoln Today:  Vocab Check Up  9.1/9.3.
Programming 3D Applications CE Displaying Computer Graphics Week 3 Lecture 5 Bob Hobbs Faculty of Computing, Engineering and Technology Staffordshire.
Computer Graphics Chapter 6 Andreas Savva. 2 Interactive Graphics Graphics provides one of the most natural means of communicating with a computer. Interactive.
Hidden Surface Removal
CS 325 Introduction to Computer Graphics 02 / 22 / 2010 Instructor: Michael Eckmann.
Computer Graphics 3D Transformations. Translation.
Geometric Transformations
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Subject Name: Computer Graphics Subject Code: Textbook: “Computer Graphics”, C Version By Hearn and Baker Credits: 6 1.
12/24/2015 A.Aruna/Assistant professor/IT/SNSCE 1.
Transformations on the Coordinate Plane: Translations and Rotations.
CS COMPUTER GRAPHICS LABORATORY. LIST OF EXPERIMENTS 1.Implementation of Bresenhams Algorithm – Line, Circle, Ellipse. 2.Implementation of Line,
1.2: Transformations CCSS
Rendering Pipeline Fall, D Polygon Rendering Many applications use rendering of 3D polygons with direct illumination.
3D Transformation A 3D point (x,y,z) – x,y, and z coordinates
Geometric Transformations UBI 516 Advanced Computer Graphics Aydın Öztürk
3-D Geometric Transformations
3-D Transformational Geometry CS418 Computer Graphics John C. Hart.
Lecture 5: Introduction to 3D
Honors Geometry.  We learned how to set up a polygon / vertex matrix  We learned how to add matrices  We learned how to multiply matrices.
CS 551 / 645: Introductory Computer Graphics Viewing Transforms.
Geometric Transformations Ceng 477 Introduction to Computer Graphics Computer Engineering METU.
OUTPUT PRIMITIVES CEng 477 Computer Graphics METU, 2004.
Forward Projection Pipeline and Transformations CENG 477 Introduction to Computer Graphics.
Geometric Transformations for Computer Graphics
Geometric Transformations for Computer Graphics
- Introduction - Graphics Pipeline
4-3 Warm Up Lesson Presentation Lesson Quiz
3D Geometric Transformation
Computer Graphics CC416 Week 15 3D Graphics.
3D Transformation.
Computer Graphics 3D Transformations
3B Reflections 9-2 in textbook
3D Viewing cgvr.korea.ac.kr.
Translations 9.2 Content Standards
CS451Real-time Rendering Pipeline
A circular dial with the digits 0 through 9 evenly spaced around its edge can be rotated clockwise 36°. How many times would you have to perform this.
OpenGL 2D Viewing Pipeline
4-4 Geometric Transformations with Matrices
Geometric Transformations for Computer Graphics
True or False: Given A(-4, 8), the image after a translation of (x – 7, y + 6) is A’(-11, 14). Problem of the Day.
TRANSFORMATIONS Translations Reflections Rotations
4-3 Warm Up Lesson Presentation Lesson Quiz
Maps one figure onto another figure in a plane.
Warm Up 6.3 Complete the chart for the given counterclockwise rotations about the origin. 90o 180o 270o R(3, -3) S(1, 4) Use.
Presentation transcript:

Midterm Review Ceng 477 Introduction to Computer Graphics Computer Engineering METU

Review Topics ● The Graphics Pipeline ● Output primitives: line drawing, circle drawing algorithms ● Filled Area Primitives: polygon filling algorithms ● Geometric transformation: 2D/3D transformation, composite transformations ● 2D Viewing: Viewing transformations, line clipping, polygon clipping algorithms

Model M1 M2 M3 3D World Scene View Coordinates V Projection Transformation Viewport Transformation 2D Image Projection Rasterization Modeling Transformations Viewing Transformations MCS WCSVCS Normalized coordinates DCS SCS The Graphics Pipeline Normalization Transformation and Clipping

Midterm Review Exercise #1 ● Using the Cohen-Sutherland line clipping algorithm clip the following line:

Solution

Midterm Review Exercise #2 ● We want to put a mirror in a 3D scene. The mirror is specified as a 3D rectangle specified with its corner points and with one of its principle axes parallel to the y axis and the other parallel to the xz plane (illustrated below). parallel to xz plane Give the transformation matrix that will generate mirror objects of all the objects in the scene (you may assume all the objects are in front of the mirror). And show the results as a product of matrices. z y x

Solution ● Basically what we are asked is reflection with respect to a plane. ● We can formulate this with a composite transformation – Align the mirror plane with one of the planes, e.g., yz plane – Compute reflection wrt to yz plane – Restore the mirror plane’s original position and orientation z y x

Solution ● Align the mirror plane with one of the planes, e.g., yz plane – Translate P 1 onto the y axis. – Rotate the plane so that P 2 is on the z axis. z y x z y x z y x

Solution ● Reflection around yz plane is just inversion of x coordinate – Reflection around yz. – Do the reverse transformations: rotate 45 degrees counterclockwise and translate P 1 back to (3,10,-1) to finish the composite transformation. z y x z y x Final Solution: T(3,0,-1)R y (45)Ref yz ( )R y (-45)T(-3,0,1)

Midterm Review Exercise #3 ● Write the contents of the sorted edge table for the given polygon. Assume the scan conversion starts from the bottom scan line. ● Which edges are in the Active Edge List at scan line 4? ● Show the double or single counted vertices. But you do not need to consider their updated values when filling in the edge table

Solution ● The vertex A is the bottommost vertex. Starting from vertex A fill in the Sorted Edge table. ● E is the only vertex that need to be counted once, so we need update the edge FE to FE’. The other vertices are not need to be updated.

Solution YE1E2 1ABAG 2FGFE’ 3CBCD 4ED The sorted edge table

Solution Y X init, Y max,1/m 1AB: 1,6,0AG: 1,3,1 2FG: 6,3,-3FE’: 6,4,2 3CB: 6,6,-5/3CD: 6,6,2/3 4ED: 10,6,-1 The contents of the sorted edge table At scanline 4: AB,CB,CD,ED are active (FE’ is just dropped from the list)