r/GraphicsProgramming • • Sep 19 '26

Video Intel Arc GPUs are not only great hardware, but excellent software that comes with it: ray tracing 28 million triangles in only 500 lines of C++ code on my Arc B580

https://www.youtube.com/watch?v=gp-vML4keBQ
24 Upvotes

7 comments sorted by

6

u/redgpu Sep 19 '26

7

u/DaveAstator2020 Sep 19 '26

hmm, its zero bounces, vk is used only to output into texture.
Raytracing is done by Intel Emberee.
so whats the point of raytracing here? just a test that it works?
it would be great to see really good description on posts instead of just bragging with buzzwords.

2

u/redgpu Sep 19 '26

so whats the point of raytracing here? just a test that it works?

Yep. And also to show that you can ray trace in real time instead of rasterizing triangles with other verbose and tricky to get right APIs, in only 500 lines of code, I can replace that one line that copies Embree rendered framebuffer to Vulkan buffer with anything really, 500 lines of Embree is enough alone to draw tens of millions of polygons...

8

u/_Wolfos Sep 19 '26

Real-time ray tracing was proven viable, I think in the late 2000's. You're right that it's somewhat less complex, but for now production still favors hybrid renderers because it's just faster (and faster means nicer graphics).

1

u/redgpu Sep 19 '26

Yep, this is true.

1

u/Wavewash Sep 21 '26

fwiw - It's really cool! I'm glad you shared this! I've been around awhile and seen a lot - and it's still amazing to see foundational graphic marvels on modern hardware.

I appreciate sharing the code too.

1

u/redgpu Sep 21 '26

Thank you for the kind words! :) I was always a fan of Embree, but their recent GPU efforts are just another level, in my opinion. :)