2019-02-05 00:20:36 +08:00
|
|
|
# Stereoscopic rendering
|
2019-01-26 06:29:05 +08:00
|
|
|
|
2019-02-05 00:20:36 +08:00
|
|
|
![](https://raw.githubusercontent.com/ssloy/tinyraytracer/stereoscope/doc/stereoscope.jpg)
|
2019-01-26 06:29:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
## compilation
|
|
|
|
```sh
|
|
|
|
git clone --recurse-submodules https://github.com/ssloy/tinyraytracer.git
|
|
|
|
cd tinyraytracer
|
2019-01-26 06:25:01 +08:00
|
|
|
git checkout homework_assignment
|
2019-01-29 17:32:18 +08:00
|
|
|
git submodule update --init
|
2019-01-26 06:29:05 +08:00
|
|
|
mkdir build
|
|
|
|
cd build
|
2019-01-20 19:13:53 +08:00
|
|
|
cmake ..
|
2019-01-26 06:29:05 +08:00
|
|
|
make
|
|
|
|
```
|
|
|
|
You can open the project in Gitpod, a free online dev evironment for GitHub:
|
|
|
|
|
2019-02-05 00:20:36 +08:00
|
|
|
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/ssloy/tinyraytracer/tree/stereoscope)
|
2019-01-20 19:13:53 +08:00
|
|
|
|
2019-01-26 06:29:05 +08:00
|
|
|
On open, the editor will compile & run the program as well as open the resulting image in the editor's preview.
|
|
|
|
Just change the code in the editor and rerun the script (use the terminal's history) to see updated images.
|