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

https://github.com/mk2510/ray_tracing_project

Simple raytracer
https://github.com/mk2510/ray_tracing_project

python3 raytracing visual-computing

Last synced: 10 months ago
JSON representation

Simple raytracer

Awesome Lists containing this project

README

          

Python implementation of the book [raytracing in one weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html) by Peter Shirley. To improve rendertimes I added multiprocessing as well, so the render takes advantage of the full processing capability. The final scene rendered by my project looks like this:

![](https://github.com/mk2510/ray_tracing_project/blob/main/image.jpg)

The raytracer is simply started by calling:

```python
>>> python3 main.py
```
from the raytracing in a weekend folder.
The book "raytracing the next week" is also implemented here in python in a seperate folder named "raytracing_the_next_week". World 5 for example renders a sphere, which will be lighted by a rectangle.

![](https://github.com/mk2510/ray_tracing_project/blob/main/image2.jpg)

Finally the famous Cornellbox is implemented withhin world 6

![](https://github.com/mk2510/ray_tracing_project/blob/main/image3.jpg)