



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Ray Casting 2
Programming 2
Recap
Programming 3 Info
Programming 3 Info
Programming 3 Info
Viewport Clip against this
Last Time
Today
Ray-Tracing
Algorithm
Ray-Tracing
Algorithm
Generating Rays in
3D
A Basic 3D Camera
Matrix
Determining Color
Doing it Better
Camera Intrinsics
and Extrinsics
Camera Intrinsics
Camera Extrinsics
Camera Extrinsics
Camera Orientation
Building a Frustum
Building a Frustum
θ vRes, hRes
eye, center
Up
Building a Frustum
D v
D u
Distance to film Focal Length
Distance to scene
Normalize D u and D v!
eye, center
θ vRes, hRes
For Each Pixel
Camera Ray
Generates
Linked List of Objects
Sphere
Plane
Etc.
App CameraMatrix
Test For Closest
Sphere Closest Object
Linked List of Materials
Material #
Material #
Linked List of Lights
Ambient #
Point #
Point #
Shade()
Material #
Shade()
Surface Material
Illuminated By
Pixel Color