Raytracing From The Ground Up, but in Python

This is my work for the book raytracing from the ground up. The original code has been made for cpp with OOP. To test out the code for myself I am currently converting this to Python, mostly to make sure I can't directly copy paste code.

This does make that it is a rather messy project for now, especially since I am still learning myself.

Eventually I might transfer the project to other languages, if it is able to hold my interest.

Usage

For now, all code is organised in the same way as the original source code. This may (will verty likely) change when I get more comfortable with the material.

There is a env.yml file included so you can copy my environment exactly.

To run the raytracer simply activate the environment and run python main.py from the Python directory

Progress

The image from Chapter 3 can be traced.

Completed Chapters

  • Chapter 3

Resources

  • Book Link
  • The original website is not available online anymore, but it can be reached through the wayback machine. The source code and accompanying files are still available there.