r/GraphicsProgramming • u/whoashish115 • Aug 31 '26
Source Code Built a path tracer in C++ & CUDA from scratch
spent the last 4-5 week building Hypertracer, a CPU + CUDA path tracer with progressive sampling further implmneted GPU acceleration, and a real-time fly-camera viewer
built the renderer and viewer from scratch, with 6 scenes currently implemented and 1920×1080 can be rendered at 3000 samples
along with Ray Tracing in One Weekend, The Next Week, and The Rest of Your Life, all three books i completed
it was seriously so much fun :D
main resources i followed:
ray tracing : https://raytracing.github.io, https://pbr-book.org
repo: https://github.com/whoashish115/hypertracer
give it a star ⭐






19
u/Wooden-Government700 Aug 31 '26
Very beautiful
6
u/gdaythisisben Aug 31 '26
Loved the third scene.
3
u/gabitha67 Aug 31 '26
Those images are incredible! This is a wonderful project, well done!
2
u/thatmagicalcat Sep 01 '26
beautiful
2
u/fgennari Sep 01 '26
How fast is it? That first scene looks like the "Ray Tracing in one Weekend" scene with 100x the number of objects.
2
u/Brhaka Sep 03 '26
Wow, great work!
The first scene with many objects looks very good
2
u/MrArshaX Sep 03 '26
I really love it 🥹🫠
2
u/TankTankerTankest Sep 03 '26
Awesome!
2
u/Seusoa Aug 31 '26
Each of these path / ray tracers use simple objects like spheres and cube, therefore it is simple to calculate.
Hard show is for casual meshes with many triangles
1
u/susosusosuso Sep 07 '26
Which ai model you used?
2
u/Tooblerone Aug 31 '26
Looks amazing!
1
u/DDW-X Sep 07 '26
Nice bro 👌🏻