r/GraphicsProgramming • u/VicitofEim • Oct 03 '26
Source Code Creating a simple raytracer through The Ray Tracer Challenge
Expected render from the tutorial
Skewed, and morphed some of the shapes
Code snippet from my progress
The Source
Getting an introduction to raytracing and implemented a simple renderer , so far implementing spheres, lighting and shadows. The code is written in Python
141
Upvotes
23
u/moschles Oct 03 '26
Want to avoid Python for this kind of thing. Python lacks true threading support.
6
u/Loud-Astronaut-5807 Oct 03 '26
I've gone though this book a few times, once in cpp, once in TS and once in Rust,
I would like to go through it again but learning how to use webGPU and compute shaders.
3
u/cybereality Oct 03 '26
oh cool
3
u/anadalg Oct 03 '26
Really good book! Some years ago I made a short video explaining the basics of Ray Tracing from what I learned reading the book. https://youtu.be/V7G9-RIhOI8
2
u/604korupt Oct 03 '26
Cool! One thing you should add next is anti-aliasing!