~/talk

How I built a Ray Tracer in Pure Python

Talkat PyCon India 2020 · 2020-10-02..10-05· [creative-coding, python]
links:none on file
slides:none on file

Built a working ray tracer entirely in pure Python with no C extensions, outputting PNGs from a simple graphics library invoked from the terminal. It implements ray–sphere and plane intersections, reflections and soft shadows, basic texturing and gamma correction, and deals with floating‑point precision and large image memory by tiling. A single‑threaded run produces full‑resolution results in minutes rather than hours, showing Python is viable for small‑scale rendering prototypes.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 10:41Ray tracing basics explained
  3. 20:34Pure Python implementation challenges
  4. 27:44Tips and lessons learned
  5. 31:52Summary and call to action
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.