Planes are now rendered, specifically unit planes that have a limited size, generating the walls in our test scene. Triangular meshes are also rendered from OBJ files, which specify the object’s vertices and vertex normals. For each of the triangular faces of this object, the ray tracer finds intersections along the object. The code instead uses the Moller-Trumbore algorithm to compute the barycentric coordinates of a ray hit on a triangular face.
render time | |
---|---|
Bounding Box | 3 min 07.560 s |
No Bounding Box | 16 min 40.143 s |