A Raytracer and Rasteriser

I was tasked to program a rasteriser and a raytracer in C++. This program would take an obj file to parse and output a rendered bmp.

The Rasteriser required:

  • Vertex transformations using a transformation matrix

  • Perspective Division

  • Viewport Transformation

  • Calculating barycentric coordinates

The Raytracer (Whitted Ray Tracer) required:

  • Calculating a ray direction

  • Ray Triangle Intersection

  • Light Contribution (Lambert’s Law)

Rasterised Image

Raytraced Image

Previous
Previous

PROJECT RELIC (UE4 C++)

Next
Next

Tilly - TurtleBot3