I’ve always been fascinated by how ray tracing works—the blend of math and programming that makes images come alive.
Back in school, I loved mathematics, especially geometry, so I decided to explore the math behind ray tracing by implementing one from scratch.
The result is github.com/deepsghimire/raytracing-weekend.

Here’s an example of a rendered image:

Ray-tracing image

I had a lot of fun experimenting with features like reflections, light sources, anti-aliasing, and different materials.

It’s a small project, but one that taught me a lot about both geometry and code—and it was immensely satisfying to see the first pixels appear on screen.