You are viewing the course site for a past offering of this course. The current offering may be found here.
Lecture 10: Ray Tracing (33)
leekaling

What if the ray is perpendicular to the normal vector and the line is ON the plane? What would the value of t be in this case?

WolfLink

In that case, t does not have a well defined value, because any value of t would result in a point on the plane. If you really needed to handle a case like this, you would probably have to detect the situation and use another algorithm for a ray-line intersection on the bounding edge of the face that is contained by the plane. However, I you would generally not need to worry about this because due to randomly generated rays, extremely specific cases like that will statistically never happen.

You must be enrolled in the course to comment