tnguyen21 / pytrace

toy ray tracer implemented in python based on the book "The Ray Tracer Challenge"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pytrace

toy ray tracer implemented in python. based off of "The Ray Tracer Challenge" by Jamis Buck

3D sphere with light reflection from produced by ray tracer

Development Setup

  1. Create new virtual environment python -m venv <env-name>
  2. Activate environment ./<env-name>/Scripts/activate
  3. Install requirements pip install -r requirements.dev.txt

Running Examples

  1. activate environment
  2. python examples/raysphere3d_demo.py

Running Tests

$ python -m unittest tests

To also get code coverage report, use:

$ coverage run --source=. -m unittest discover
$ coverage report

Linting

$ pylint src

About

toy ray tracer implemented in python based on the book "The Ray Tracer Challenge"

License:MIT License


Languages

Language:Python 100.0%