In the third assignment of CENG795, we are expected to introduce many new features to the ray tracer, such as: Transformations Instancing Smooth shading Distribution Ray Tracing Depth of field Soft shadows (area lights) Glossy reflections Motion blur Simple Camera(Constructed with fov, distance, and aspect ratio) PLY parsing Transformations and Instancing: First I implemented basic transformation classes and matrix operations. If a mesh instance, a sphere, or a primitive triangle has some transformations, I apply them to their bounding boxes for keeping the order of the bvh. For instancing, I separated mesh triangles and primitive triangles. Primitive triangles and spheres convert the ray into their local space to check if it intersects. Mesh instances converts the ray into local space of the their meshes to check if it intersects. Meshes and mesh triangles doesn't apply any transformation, they expect rays from their space. I...
Yorumlar
Yorum Gönder