1
So You Want to Write a Ray Tracer
Checkpoint 4 – Procedural Shading
Ray Tracing Assignment
Goal is to reproduce the following Whitted, 1980
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
Goal is to reproduce the following Whitted, 1980
Setting the Scene Camera Modeling Basic Shading Procedural Shading Recursive Ray Tracing – Reflection Recursive Ray Tracing – Transmission Tone Reproduction
Setting the Scene Camera Modeling Basic Shading Procedural Shading Recursive Ray Tracing – Reflection Recursive Ray Tracing – Transmission Tone Reproduction
Use procedural texture to create a
On floor intersection
Rather than using Phong model Compute color based on checkerboard
Will need point of intersection in object / world space Convert to (u,v) based
Red or yellow based on which check Just return color (if not in shadow) or supply as diffuse / ambient color in Phong
At intersection point of floor
Must obtain the “texture coordinates” to
Use these u,v, values as a means to
Point of intersection “origin” of floor Checksize
Algorithm
Given text coordinates (u,v) for point of
Find row and col in which intersection point lies
For 5 points each
Implement another procedural shader or
Implement texture map from image.
Due date:
Must be posted to Web site by Monday, January
Recall:
10% penalty per day
Having trouble?
Let me know EARLY.
Questions?