Docsity

Ray Casting - Computer Graphics - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Ray Casting - Computer Graphics - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Ray Casting

  • Administrative • Assignment 1 – Due Wednesday September

Questions?

Overview of the semester • Ray Tracing^ – Quiz 1 • Animation, modeling, IBMR^ – Choice of final project • Rendering pipeline^ – Quiz 2 • Advanced topics

Ray Casting For^

every

pixel Construct

a^ ray

from

the

eye

For^

every

object

in^

the^

scene

Find

intersection

with

the

ray

Keep

if^

closest

Ray Casting For^

every

pixel Construct

a^ ray

from

the

eye

For^

every

object

in^

the^

scene

Find

intersection

with

the

ray

Keep

if^

closest

Ray Tracing • Secondary rays (shadows, reflection, refraction) • In a couple of weeks

Ray representation?

Ray Tracing •^ Original Ray-tracedimage by Whitted •^ Image computed usingthe Dali ray tracer byHenrik Wann Jensen •^ Environment map byPaul Debevec

Image removed due to copyright considerations.Image removed due to copyright considerations.

Ray casting For^

every

pixel Construct

a^ ray

from

the

eye

For^

every

object

in^

the^

scene

Find

intersection

with

the

ray

Keep

if^

closest Shade

depending

on^

light

and

normal

vector

Finding theintersection andnormal is thecentral part ofray casting

Cameras For^ every

pixel Construct

a^ ray

from

the

eye

For^

every

object

in^

the^

scene

Find

intersection

with

the

ray Keep^ if

closest

Pinhole camera •^ Box with a tiny hole •^ Inverted image •^ Similar triangles

•^ Perfect image if holeinfinitely small•^ Pure geometric optics•^ No depth of field issue

Camera description^ – Eye point e– Orthobasis u, v, w– Image distance s– Image rectangle

(u0, v0, u1, v1)– Deduce c (lower left)– Deduce a and b– Screen coordinates in [0,1]*[0,1]– A point is then c + x a +y b

u

v

w

e

c

s

x^ b^ a

y

Docsity.com

Alternative perspective encoding • 4x4 matrix & viewing frustum • More about that next week