sinistamunkey / raytracer

A basic raytracer written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raytracer

Making a raytracer in Python because... reasons.

Following: https://www.youtube.com/playlist?list=PL8ENypDVcs3H-TxOXOzwDyCm5f2fGXlIS

Getting started

You will need to install Poetry.

MacOS/ Linux

cd raytracer
poetry install

Windows

cd raytracer
py -m poetry install

Running rendering commands

At present this only supports rendering a single sphere to a canvas using the PPM format.

MacOS/ Linux

poetry run raytracer rendering render-scene

Windows

py -m poetry run raytracer rendering render-scene

The above command will create a new file in the out directory. You can specify scenes defined in the scenes directory.

scene_1

About

A basic raytracer written in Python

License:MIT License


Languages

Language:Python 93.0%Language:Cython 6.6%Language:Makefile 0.4%