Link Search Menu Expand Document

Ray Triangle Intersection

We recommend that you implement the Moller-Trumbore algorithm, a fast algorithm that takes advantage of a barycentric coordinates parameterization of the intersection point, for ray-triangle intersection.

A few final notes and thoughts:

If the denominator dot((e1 x d), e2) is zero, what does that mean about the relationship of the ray and the triangle? Can a triangle with this area be hit by a ray? Given u and v, how do you know if the ray hits the triangle? Don’t forget that the intersection point on the ray should be within the ray’s time_bound.