Skip to content

rokcej/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple ray tracer written in C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published