https://github.com/efliks/mikraytrace
Ray tracing on the command line
https://github.com/efliks/mikraytrace
computer-graphics raytracing raytracing-engine raytracing-in-one-weekend
Last synced: over 1 year ago
JSON representation
Ray tracing on the command line
- Host: GitHub
- URL: https://github.com/efliks/mikraytrace
- Owner: efliks
- License: gpl-3.0
- Created: 2021-11-18T20:29:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-24T20:48:20.000Z (almost 2 years ago)
- Last Synced: 2025-01-10T19:46:52.491Z (over 1 year ago)
- Topics: computer-graphics, raytracing, raytracing-engine, raytracing-in-one-weekend
- Language: C++
- Homepage:
- Size: 3.96 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# 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](https://drive.google.com/file/d/1e9myBNpWHDAlyTtKmfqpKNdgcAeiuVQ_/view?usp=share_link) 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
```