Skip to content
Business card raytracer / eventual IOCCC winner
Branch: master
Clone or download
Latest commit 3b8c201 Aug 17, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
png updated card.cpp and images Aug 17, 2016
ppm updated card.cpp and images Aug 17, 2016
src tweak space Aug 17, 2016
.gitignore got rid of size things Aug 2, 2016
CMakeLists.txt initial commit Aug 2, 2016
README.md Update README.md Aug 5, 2016
format_and_count.py added formatting / counting tool Aug 4, 2016

README.md

miniray

Business card raytracer / eventual IOCCC winner. See full writeup at https://mzucker.github.io/2016/08/03/miniray.html

Building

To build:

cd /path/to/miniray
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
make ppm_images #optional, takes a while

Using the software

For all versions, you can pipe the output to a PPM image (displayable with ImageMagick display command among other apps):

./miniray > image.ppm

For versions 4.2 and after, you can input your own text:

./miniray "my text" > image.ppm
./miniray "my text" -preview > image.ppm # faster, reflections & AA disabled

See also

You can’t perform that action at this time.