Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 838 Bytes

File metadata and controls

32 lines (22 loc) · 838 Bytes

Ray tracer

A program for drawing 3D mathematical functions using the ray tracing (ray marching) method. Written in C++.
Created as a project for my Mathematical Modelling course. You can find the report in docs/report.pdf.

Installing prerequisites

This program has no dependencies. You only need GCC and Make to compile it.

  • Installing GCC and Make:
     sudo apt-get install build-essential

Compiling and running

Make sure to run the following commands in the base directory of the repository. The result will be stored as render.bmp.

  • Compiling and linking the code:
     make
  • Running the program:
     build/raytracer

Examples

Render example

You can check out more rendered images here.