An open API service indexing awesome lists of open source software.

https://github.com/kiwijuice56/ray-tracer-demo

Simple raytrace renderer implemented in pure python
https://github.com/kiwijuice56/ray-tracer-demo

3d 3d-engine python raytracer raytracing rendering

Last synced: 5 months ago
JSON representation

Simple raytrace renderer implemented in pure python

Awesome Lists containing this project

README

          

# python-raytracer
Basic raytracer implemented in python. Currently only supports
planes, spheres, and lights.

![Example render](render.png)

## Dependencies
- Pillow is necessary to draw each pixel and save the image as a file. You can substitute this with another library that can draw pixel by pixel

## Attribution

- [Kyle Halladay's sphere intersection explanation](http://kylehalladay.com/blog/tutorial/math/2013/12/24/Ray-Sphere-Intersection.html)
- [Scratchapixel.com's raytracing explanation](https://www.scratchapixel.com/lessons/3d-basic-rendering/introduction-to-ray-tracing/how-does-it-work)