CS 543: Computer Graphics Midterm review. Emmanuel Agu

Similar documents
CHAPTER 1 Graphics Systems and Models 3

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

CS4202: Test. 1. Write the letter corresponding to the library name next to the statement or statements that describe library.

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

Course Title: Computer Graphics Course no: CSC209

CS 130 Final. Fall 2015

To Do. Computer Graphics (Fall 2008) Course Outline. Course Outline. Methodology for Lecture. Demo: Surreal (HW 3)

Computer Graphics (CS 543) Lecture 9 (Part 2): Clipping. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

OpenGL: A Practical Introduction. (thanks, Mark Livingston!)

CS 4620 Program 3: Pipeline

The Importance of Matrices in the DirectX API. by adding support in the programming language for frequently used calculations.

Computer Graphics. Instructor: Oren Kapah. Office Hours: T.B.A.

Lecture 4 of 41. Lab 1a: OpenGL Basics

Computer Graphics (CS 543) Lecture 2c: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Computer Graphics (Basic OpenGL)

CS Computer Graphics: Transformations & The Synthetic Camera

Graphical Objects and Scene Graphs

CSE 690: GPGPU. Lecture 2: Understanding the Fabric - Intro to Graphics. Klaus Mueller Stony Brook University Computer Science Department

API for creating a display window and using keyboard/mouse interations. See RayWindow.cpp to see how these are used for Assignment3

Surface Graphics. 200 polys 1,000 polys 15,000 polys. an empty foot. - a mesh of spline patches:

Institutionen för systemteknik

Today. Rendering pipeline. Rendering pipeline. Object vs. Image order. Rendering engine Rendering engine (jtrt) Computergrafik. Rendering pipeline

Computer Graphics CS 543 Lecture 1 (Part I) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

GL_MODELVIEW transformation

Object Representation Affine Transforms. Polygonal Representation. Polygonal Representation. Polygonal Representation of Objects

Syllabus CS476 COMPUTER GRAPHICS Fall 2009

Computer Graphics 4731 Lecture 5: Fractals. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

OpenGL: Open Graphics Library. Introduction to OpenGL Part II. How do I render a geometric primitive? What is OpenGL

OpenGL. Jimmy Johansson Norrköping Visualization and Interaction Studio Linköping University

CSE 167: Lecture #4: Vertex Transformation. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

CS559 Computer Graphics Fall 2015

Computer Graphics. Chapter 10 Three-Dimensional Viewing

Lahore University of Management Sciences. CS 452 Computer Graphics

CS 432 Interactive Computer Graphics

Prof. Feng Liu. Fall /19/2016

Homework #2 and #3 Due Friday, October 12 th and Friday, October 19 th

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

Last week. Machiraju/Zhang/Möller/Fuhrmann

Today. Today. Introduction. Matrices. Matrices. Computergrafik. Transformations & matrices Introduction Matrices

Today s class. Viewing transformation Menus Mandelbrot set and pixel drawing. Informationsteknologi

Transforms 1 Christian Miller CS Fall 2011

Affine Transformations in 3D

Basic Graphics Programming

Graphics and Visualization

Computer Graphics (CS 543) Lecture 1 (Part 1): Introduction to Computer Graphics

CS354 Computer Graphics Viewing and Modeling

Precept 2 Aleksey Boyko February 18, 2011

End-Term Examination

CS 543: Computer Graphics Lecture 3 (Part I): Fractals. Emmanuel Agu

Roll No. :... Invigilator's Signature : GRAPHICS AND MULTIMEDIA. Time Allotted : 3 Hours Full Marks : 70

Introduction to Computer Graphics with OpenGL/GLUT

Blue colour text questions Black colour text sample answers Red colour text further explanation or references for the sample answers

CSE Intro to Computer Graphics. ANSWER KEY: Midterm Examination. November 18, Instructor: Sam Buss, UC San Diego


OpenGL refresher. Advanced Computer Graphics 2012

CSE 167: Introduction to Computer Graphics Lecture #4: Vertex Transformation

CSE328 Fundamentals of Computer Graphics

3D Graphics Pipeline II Clipping. Instructor Stephen J. Guy

EF432. Introduction to spagetti and meatballs

CSE528 Computer Graphics: Theory, Algorithms, and Applications

CS 130 Exam I. Fall 2015

TDA361/DIT220 Computer Graphics, January 15 th 2016

OpenGL. Toolkits.

Pipeline Operations. CS 4620 Lecture Steve Marschner. Cornell CS4620 Spring 2018 Lecture 11

Computer Graphics I Lecture 11

How shapes are represented in 3D Graphics. Aims and objectives By the end of the lecture you will be able to describe

CSC 470 Computer Graphics

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

Teacher Assistant : Tamir Grossinger Reception hours: by - Building 37 / office -102 Assignments: 4 programing using

2: Introducing image synthesis. Some orientation how did we get here? Graphics system architecture Overview of OpenGL / GLU / GLUT

Vector Algebra Transformations. Lecture 4

CMSC427 Transformations II: Viewing. Credit: some slides from Dr. Zwicker

Three Main Themes of Computer Graphics

CS 543 Lecture 1 (Part II): Intro to OpenGL and GLUT (Part I) Emmanuel Agu

Computer Graphics Disciplines. Grading. Textbooks. Course Overview. Assignment Policies. Computer Graphics Goals I

Rendering Pipeline/ OpenGL

Books, OpenGL, GLUT, GLUI, CUDA, OpenCL, OpenCV, PointClouds, and G3D

Pipeline Operations. CS 4620 Lecture 14

Graphics Pipeline 2D Geometric Transformations

蔡侑庭 (Yu-Ting Tsai) National Chiao Tung University, Taiwan. Prof. Wen-Chieh Lin s CG Slides OpenGL 2.1 Specification

Computer Graphics Seminar

Game Mathematics. (12 Week Lesson Plan)

Lahore University of Management Sciences. CS 452 Computer Graphics

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

Linear transformations Affine transformations Transformations in 3D. Graphics 2009/2010, period 1. Lecture 5: linear and affine transformations

Hierarchical Modeling. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

CS418 OpenGL & GLUT Programming Tutorial (I) Presented by : Wei-Wen Feng 1/30/2008

CS 591B Lecture 9: The OpenGL Rendering Pipeline

UNIT 4 GEOMETRIC OBJECTS AND TRANSFORMATIONS-1

CS 130 Exam I. Fall 2015

CS488. Implementation of projections. Luc RENAMBOT

CS 428: Fall Introduction to. Transformations in OpenGL + hierarchical modeling. Andrew Nealen, Rutgers, /21/2009 1

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

6.837 Introduction to Computer Graphics Assignment 5: OpenGL and Solid Textures Due Wednesday October 22, 2003 at 11:59pm

CSC 8470 Computer Graphics. What is Computer Graphics?

Translation. 3D Transformations. Rotation about z axis. Scaling. CS 4620 Lecture 8. 3 Cornell CS4620 Fall 2009!Lecture 8

CIS 581 Interactive Computer Graphics

Transcription:

CS 543: Computer Graphics Midterm review Emmanuel Agu

Exam Overview Wednesday, Oct. 17, in-class Will cover up to today s lecture (Illumination and Shading) Can bring: One page cheat-sheet, hand-written (not typed) Calculator Will test: Theoretical concepts Mathematics Algorithms Programming OpenGL knowledge (program structure and some commands)

What am I Really Testing? Understanding of concepts (NOT only programming) programming (pseudocode/syntax) Test that: you can plug in numbers by hand to check your programs you did the projects you understand what you did in projects

General Advise Read your projects and refresh memory of what you did Read the slides: worst case if you understand slides, you re more than 50% prepared Focus on Mathematical results, concepts, algorithms Plug numbers: calculate by hand Should be able to predict subtle changes to algorithm.. What ifs?.. Past exams: Some on website, I taught fall 2005. This exam will resemble mostly fall 2005 Every lecture has references. Look at refs to focus reading Do all readings I asked you to do on your own

Grading Policy I do ALL grading myself Give you all the points, take away only what I have to In time constraints, laying out outline of solution gets you healthy chunk of points Try to write something for each question Many questions will be easy, exponentially harder to score higher in exam

Introduction Motivation for CG Uses of CG (simulation, image processing, movies, viz, etc) Elements of CG (polylines, raster images, filled regions, etc) Device dependent graphics libraries (OpenGL, DirectX, etc)

OpenGL/GLUT High-level: What is OpenGL? What is GLUT? Functionality, how do they work together? Design features: low-level API, event-driven, portability, etc Sequential Vs. Event-driven programming OpenGL/GLUT program structure (create window, init, callback registration, etc) GLUT callback functions (registration and response to events)

OpenGL Drawing glbegin( ), glend( ), glvertex( ) OpenGL : Drawing primitives: GL_POINTS, GL_LINES, etc (should be conversant with the behaviors of major primitives) Command format Data types Interaction: keyboard, mouse (GLUT_LEFT_BUTTON, etc) OpenGL state

2D Graphics: Coordinate Systems Screen coordinate system/viewport World coordinate system/world window Window to Viewport mapping: Motivation: why is it necessary? OpenGL way: gluortho2d(left, right, bottom, top) glviewport (left, bottom, right-left, top-bottom) Our way: calculate mapping Applications: tiling, zooming, flipping, maintaining aspect ratio Cohen-sutherland clipping algorithm operation Why and how to do trivial accept/reject, chop Given vertices, clip!!

Fractals What are fractals? Self similarity Applications (clouds, grass, terrain etc) Koch curves/snowflakes How to build K1, K2, etc S1, S2, etc. Pseudocode: how to draw Mandelbrot set Complex numbers: s, c, orbits, complex number math Dwell function Assigning colors Mapping mandelbrot to screen

Points, Scalars Vectors Vector Operations: Addition, subtraction, scaling Magnitude Normalization Dot product Cross product Finding angle between two vectors Standard unit vector Normal of a plane

Transforms Homogeneous coordinates Vs. Ordinary coordinates 2D/3D affine transforms: rotation, scaling, translation, shearing Should be able to take problem description and build transforms and apply to vertices 2D: rotation (scaling, etc) about arbitrary center: T(Px,Py) R(θ) T(-Px,-Py) * P Composing transforms OpenGL transform commands (glrotate, gltranslate, etc) 3D rotation: x-roll, y-roll, z-roll, about arbitrary vector (Euler theorem) if given azimuth, latitude of vector or (x, y, z) of normalized vector Matrix multiplication!!

Modeling GLUT models (teapot, sphere, cube, etc) Overview of opengl Modelview matrix (M and V part) Projection matrix Clipping Viewport Should know high-level what each stage does OpenGL matrices: what are they? How to select, initialize, compose Hierachical modeling using OpenGL (glpopmatrix, glpushmatrix) SDL

Illumination and Shading Illumination models Light types (point, extended, etc) Global vs local illumination Ambient, diffuse, specular Phong light model OpenGL lighting, material commands