Docsity

Computer Graphics Final review - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Computer Graphics Final review - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Computer Graphics

Final review

Exam Overview

n Wednesday, December 12, 2007 in-class

n Midterm covered up to end of lecture 5 part II (illumination. &

shading)

n Final will cover everything from lecture 6 till today!!

n Can bring:

n One page cheat-sheet

n Calculator

n Will test:

n Theoretical concepts

n Mathematics

n Algorithms

n Programming

n OpenGL knowledge (program structure and some commands)

3D clipping and Viewport transformation

n Liang-barsky algorithm

n Viewport transformation in 3D

n Illumination models

n (ambient, diffuse, specular)

n Phong model

n OpenGL lighting and shading

n Phong, Gouraud shading

n Hidden Surface Removal

n Z-buffer

n Backface culling

3D Viewing

n gluLookat(Eye, COI, Up ) to set camera

n How to build 3 new vectors for axes

n How to build world-to-eye transformation

n Pitch: nose up-down

n Roll: roll body of plane

n Yaw: move nose side to side

n Projection:

n View volume, near plane, far plane

n gluPerspective(fovy, aspect, near, far) or

n glFrustum(left, right, bottom, top, near, far)

n glOrtho(left, right, bottom, top, near, far)

n How to build Perspective and Ortho matrices

Outline

n Line drawing

n Integer DDA (simplest algorithm)

n Bresenham’s line drawing (midpoint version in Hill)

n Why is one Bresenham better?

n Pixmap operations

n Read, combine pixmaps (addition, subtraction, etc), scaling

pixmaps, rotating pixmaps, alpha channel: image blending

n Polygon filling algorithms

n Recursive Flood fill

n Improving flood fill using coherence

n Filling polygon-defined areas

n Antialiasing: pre-filtering, supersampling, post filtering

(weighted supersampling)

Outline

n Ray tracing

n Define objects, camera, light sources in SDL

n Set OpenGL up for 2D drawing using blockSize

n Camera geometry set up

n Build RC-th ray

n Object intersections

n Sphere

n Plane

n Cube

n Mesh