You are viewing the course site for a past offering of this course. The current offering may be found here.
Lecture 9: Intro to Ray-Tracing & Accelerating Ray-Scene Intersection (20)
bbcd0921

Why do we solve for t here? What can I get after solver for t? I’m confused here.

Staffjamesfong1

@bbcd0921 We solve for tt because this provides us with many important outputs:

  • We know if the ray intersection is valid by checking if t>0t > 0.
  • We get where the ray hit the surface by plugging tt back into the ray equation r(t)=o+tdr(t) = o + td.
  • We can compare this value of tt with other potential intersections to determine which surface the ray hit first.
You must be enrolled in the course to comment