Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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++

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")