Docsity

Computer Graphics Final Review: A Comprehensive Guide to Key Concepts and Techniques, Exercises of Data Structures and Algorithms

Partial preview of the text

Download Computer Graphics Final Review: A Comprehensive Guide to Key Concepts and Techniques and more Exercises Data Structures and Algorithms in PDF only on Docsity!

15-462 Computer Graphics

Final Review

Lingyun Gu April 29, 2008 Carnegie Mellon University

General Information z

Time: 5:30pm – 8:30pm, Thursday, May 8,^2008

z

Location: TBA

-^

Closed book

-^

No cheat sheet

-^

Everything covered so far (including the first halfof this semester)

-^

Review your HWs

Explict/Implicit/Parametric equations(Cont’d) z^

Parametric: (x, y) = (f(u),g(u)), (x, y) = (cos(u),sin(u))^ –

Easy to generate points – How a change in umoves you along a givencurve in xyz space

Polynomial Interpolation z^

An n-th degreepolynomial fits a curveto n+1 points^ –

Called Lagrangeinterpolation – Cons: change to anycontrol point affectsentire curve (non-local)

Continuity z^

C

, C 0

1

continuity:

-^

C^0

continuity: continuous in positions

-^

C^1

continuity: continuous in positions and tangentvectors

Cubic Polynomial Form z^

Each P and C

is a column vectork^

z^

From control information (points or tangents) z^

Goal – to determine cubic polynomial form

Rendering Equation z

Key idea: [outgoing] = [emitted] + [reflected]+ [transmitted]

z

Don’t forget how to connect this withRadiosity equation.

=

ω

ω ω λ ω ω ρ λ ω λ ω λ ω d n p p t L p t E p t

L^

| . |) , , , ( ) , ,

,(

) , , ,(

) , , ,(

0

0

0

0

Bidirectional reflectance distributionfunction (BRDF) z^

in the

rendering equation isthe BRDF, which givesthe reflectance of atarget as a function ofillumination geometryand viewing geometry.

(^

0

λ ω ω

ρ^

p

Object Space vs. Image Space z

Graphics pipeline: for each object, render(on-line)

z

Ray tracing: for each pixel, determine color(off-line)

z

Radiosity: for each two surface patches,determine diffuse interreflections (off-line)

Forward Ray Tracing z^

Forward ray tracingfollows the photon indirection that lighttravels from the source^ –

Cons: only a tiny fractionof rays reach the image

Ray Types for Ray Tracing z

Four ray types:

-^

Eye rays: originate at the eye

-^

Shadow rays: from surface point toward lightsource

-^

Reflection rays: from surface point in mirrordirection

-^

Transmission rays: from surface point in refracteddirection

Ray Genealogy - one example

Transmission Rays and Snell’s Law z^

n is the refractive indexof the first material z^

N

is the refractive indext^ of the second material z^

Key idea: the ratio ofthe sinusoids of theangles of incidence andof refraction is aconstant depending onthe media

sin(

sin(

φ

θ^

nt

n^

Ray Intersection Test z

Ray-Sphere intersection

z

Ray-Polygon intersection

z

Ray-Quadric intersection