Skip to content

lehrmanaidins/python_ray_tracing

Repository files navigation

python_ray_tracing

Source: Ray Tracing in One Weekend

https://raytracing.github.io/books/RayTracingInOneWeekend.html

Best Render So Far

Best render so far

About:

This is still very much a work in progress, but I am trying to recreate the code in "Ray Tracing in One Weekend" 100% in Python.

To-Do:

Chapters in "Ray Tracing In One Weekend":

  • Output an Image
  • The Vector3 Class
  • Rays, a Simple Camera, and Background
  • Adding a Sphere
  • Surface Normals and Multiple Objects
  • Moving Camera Code Into Its Own Class
  • Antialiasing
  • Diffuse Materials
  • Metal
  • Dielectrics
  • Positionable Camera
  • Defocus Blur
  • Where Next?

Why I Stopped

I have came to the conclusion that Python is definitely not the right language to write a ray-tracer in. It is way too slow, and I have started learning C++. Will remake this in C++ to make this exponentially faster.

About

Python ray tracer based on "Ray Tracing In One Weekend"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages