This phenomenon indeed will happen sometimes.
We need to check whether the actual intersection point is in the grid we choose. If not, we can keep traversing the ray until it meets.
Zenuriken
I understand that we cache the intersection of the red dot so we don't have to re-perform our tests later on, but I was wondering in what scenarios would it be useful to know about intersections of our ray beyond our first point of contact? In ray tracing, don't we only care about the first object our ray hits?
cchendyc
When checking the intersection of the ray and the circle, why didn't we check the part of the circle that is within the cell and if there is any intersection between the ray the part of the circle?
This phenomenon indeed will happen sometimes. We need to check whether the actual intersection point is in the grid we choose. If not, we can keep traversing the ray until it meets.
I understand that we cache the intersection of the red dot so we don't have to re-perform our tests later on, but I was wondering in what scenarios would it be useful to know about intersections of our ray beyond our first point of contact? In ray tracing, don't we only care about the first object our ray hits?
When checking the intersection of the ray and the circle, why didn't we check the part of the circle that is within the cell and if there is any intersection between the ray the part of the circle?