Ray-Box Intersection during Scene traversal with matrix transforms
- by Myx
Hello:
There are a few ways that I'm testing my ray-box intersections:
Using the ComputeIntersectionBox(...) method, that takes a ray and a box as arguments and computes the closest intersection of the ray and the box. This method works by forming a plane with each of the faces of the box and finding an intersection with each of the planes. Once…