Skip to content

efliks/mikraytrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bef7647 · Jun 24, 2024
Mar 11, 2023
Mar 11, 2023
Mar 11, 2023
Sep 4, 2022
Mar 11, 2023
Mar 11, 2023
Jun 3, 2017
Mar 12, 2023
Jun 24, 2024
Jun 24, 2024
Nov 18, 2021

Repository files navigation

mikraytrace

A weekend project to create a simple raytracer in C++.

Build instructions

Firstly, install the required tools. It may be that you already have them installed. If not, in Debian or in a Debian-like Linux, you may do:

mikraytrace > apt-get install build-essential cmake

Secondly, you need some third party libraries. These are:

  • eigen for linear algebra
  • CLI11 for command line processing
  • cpptoml for reading configuration files
  • toojpeg for writing scenes in JPEG format
  • lodepng for loading textures and writing scenes in PNG format

Install them by updating the submodules:

mikraytrace > git submodule update --init --recursive

Thirdly, you may need example textures. I created a texture pack based on free textures from OpenGameArt.org. Create a textures directory and unpack the textures there.

Finally, review CMakeLists.txt. If everything looks okay, create a build directory and run CMake followed by make:

mikraytrace/build > cmake ..
mikraytrace/build > make

This should generate an executable file mrtp_cli. In order to test the program, render the example scene:

mikraytrace > ./build/mrtp_cli bluemol.toml

Releases

No releases published

Packages

No packages published