Ray Tracing Assignment Goal is to reproduce the following Whitted, - - PDF document

ray tracing assignment
SMART_READER_LITE
LIVE PREVIEW

Ray Tracing Assignment Goal is to reproduce the following Whitted, - - PDF document

So You Want to Write a Ray Tracer Checkpoint 4 Procedural Shading Ray Tracing Assignment Goal is to reproduce the following Whitted, 1980 1 Ray Tracing Assignment Seven checkpoints Setting the Scene Camera


slide-1
SLIDE 1

1

So You Want to Write a Ray Tracer

Checkpoint 4 – Procedural Shading

Ray Tracing Assignment

 Goal is to reproduce the following Whitted, 1980

slide-2
SLIDE 2

2

Ray Tracing Assignment

Seven checkpoints

  Setting the Scene  Camera Modeling  Basic Shading   Procedural Shading  Recursive Ray Tracing – Reflection  Recursive Ray Tracing – Transmission   Tone Reproduction

Ray Tracing Assignment

Seven checkpoints

  Setting the Scene  Camera Modeling  Basic Shading   Procedural Shading  Recursive Ray Tracing – Reflection  Recursive Ray Tracing – Transmission   Tone Reproduction

slide-3
SLIDE 3

3

Procedural Shading

 Use procedural texture to create a

checkerboard floor

 On floor intersection

 Rather than using Phong model  Compute color based on checkerboard

Texture Mapping

Will need point of intersection in object / world space Convert to (u,v) based

  • n floor specs

Red or yellow based on which check Just return color (if not in shadow) or supply as diffuse / ambient color in Phong

slide-4
SLIDE 4

4

Texture Mapping

 At intersection point of floor

 Must obtain the “texture coordinates” to

map to u,v on texture.

 Use these u,v, values as a means to

determine color.

Procedural Shading

Point of intersection “origin” of floor Checksize

x / u y / v

slide-5
SLIDE 5

5

Procedural Shading

 Algorithm

 Given text coordinates (u,v) for point of

intersection

 Find row and col in which intersection point lies

color Col Row Red Odd Odd Yellow Even Odd Yellow Odd Even Red Even Even

Extra, Extra

 For 5 points each

 Implement another procedural shader or

texture (your choice)

 Implement texture map from image.

slide-6
SLIDE 6

6

Object oriented hints Procedual Shading

 Due date:

 Must be posted to Web site by Monday, January

21

 Recall:

 10% penalty per day

 Having trouble?

 Let me know EARLY.

 Questions?