Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkasak/sol
A simple renderer (ray tracer) in C++
https://github.com/dkasak/sol
Last synced: about 2 months ago
JSON representation
A simple renderer (ray tracer) in C++
- Host: GitHub
- URL: https://github.com/dkasak/sol
- Owner: dkasak
- License: gpl-3.0
- Created: 2015-04-08T10:40:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-11-11T17:03:59.000Z (about 5 years ago)
- Last Synced: 2024-11-29T03:49:40.833Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 265 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Sol
Sol is a simple renderer that I wrote for my bachelor's thesis. It currently
supports ray casting and a basic ray tracing algorithm.## Build instructions
```
make
```## Usage
To render your own scene:
1. Write a new world file and put it into `worlds/`. Check the other files
there for an example on how to do that.
2. Replace the world `#include` directive in `sol.cpp` with your own.
3. Rebuild by running `make`.
3. `sol -H -V -s -S jittered`The output image will be saved as `output.bmp`.
There's also `sol --help` to see all supported flags.
## Example renderings
![four_boxes](http://i.imgur.com/WINzq7u.png "Four boxes")
![not_nothing](https://i.imgur.com/lJLdDZV.png)
![coloured_shadows](https://i.imgur.com/MrDUYgN.png "Coloured shadows")