karansher / computer-graphics-ray-casting

Computer Graphics Assignment about Ray Casting
1 stars 0 forks source link

Ray intersecting plane at infinite number of points. #13

Closed Ming-Yeung-Alfred-Meng closed 1 year ago

Ming-Yeung-Alfred-Meng commented 1 year ago

If the ray intersects the plane at an infinite number of points, do we still render the plane?

Glowies commented 1 year ago

This is up to you. The only case where this occurs is when the ray is completely parallel to and on the plane, which will be very rare. So your result image will not look very different in either case. I would recommend not rendering it because it could get tricky to find an appropriate t value when you have an infinite number of intersection points.