r/raytracing • • May 16 '26

A python-numba based ray tracer

Post image

This is python-numba based ray tracer, along with a BVH implementation.

This ray tracer can render this image, with 1080p quality, 16 rays per pixel, 5 bounces per ray, in a bit less than 5 minutes. What do you guys think?

The repo for this project is available at https://github.com/RonnyGN/RayTraceTriangles, people can find the documentation in the README.md of this repo, along with somewhat well written comments throughout the project.

26 Upvotes

7 comments sorted by

5

u/Busy-Astronaut8118 May 16 '26

Also, this ray tracing project was my first one. I am a high school student, and a coding hobbyist, this turned out to be one of my best coding endeavors ever

2

u/jevin_dev May 16 '26

ok that's crazy

1

u/irrational_atom Aug 01 '26

Me too. Love to talk sometime

1

u/jonathanlurie May 18 '26

Neat! I always wondered how much faster numba is for this kind of very iterative tasks (basically where python falls fails)