A simple recursive 3D raytracer written in python by Tilman Ginzel.
During my studies at the RheinMain University of Applied Science we had to write a raytracer in python. This took place in a fourth semester course called Generative Computergrafik lectured by Prof. Dr. U. Schwanecke in 2014.
This project is licensed under the MIT license (see LICENSE.txt for details), so feel free to fork the project.
Windows user can find suitable python packages here: http://www.lfd.uci.edu/~gohlke/pythonlibs/
run.py [-h] -r [-s ] [-v] [-m] [-a] [-o] [-set] [-nd]
optional arguments:
-h, --help show this help message and exit
-r , --recursive sets recursive depth, e.g. -r 3 (required)
-s , --size sets the size, e.g. -s 400 400
-v, --verbose enable live visualization while processing (slower)
-m, --material enable materials
-a, --antialiasing enables 4xSSAA (hence, 4 times slower)
-o, --output saves image to "./saves/"
-set , --setting choose between two settings. -set 1 or -set 2
-nd, --no-display this should only be set if the script runs on a server
without a $DISPLAY environment variable set!
Required result during the course. Larger version: 1920x1200
run.py -r 3 -s 1920 1200 -m -o -a
Texture to sphere mapping. Larger version: 1920x1200
run.py -r 3 -s 1920 1200 -m -o -a -set 2
Fiddling around with some settings. Larger version: 1920x1200
run.py -r 3 -s 1920 1200 -m -o -a -set 3