r/GraphicsProgramming • u/Maui-The-Magificent • Feb 14 '26
Constellation: Light Engine - Reflections (1 CORE CPU, No ray tracing or marching)
Hello once more,
I have been taking a break from my particle work and going back to working on the light engine of my no-std integer based CPU graphics engine/framework. And thought I would share the current progress on reflections.
Keep in mind that the included GIF shows a prototype that has most of its parameters either highly clamped or non-functional, as I have ripped out most of the code to focus on reflections. So, this demo recording is not an accurate representation of how the full engine outputs most of the other things on the menu to the right.
The first thing I started working on when I started building Constellation was geometry and light. I have always been quite annoyed about ray tracing. Don't get me wrong, it's an amazing technology with very impressive results. But it is very much a brute force solution for a phenomenon that is inherently deterministic. The idea is that deterministic processes are wasteful to simulate, if you have managed to get a result, then you have solved that process. You can now use the result and offset it by the positional delta between points of interaction and light sources.
The demo above is not optimized, structurally its not doing what it should. There is much more computation being done then what it needs to. But I wanted to share it because, even though the frame rate a lot lower than it should, it at least shows you that you can achieve good reflections without doing any ray tracing, and hopefully it helps illustrate that computing light in graphics isn't solved, but suggest it could be.
//Maui_The_Mupp signing off
11
u/Jealous_Juice6921 Feb 14 '26
That's freaking cool! What tools do you use? API, code language, libraries? (*Sorry for my awful English, I'm just learning)
7
u/moschles Feb 14 '26
https://www.reddit.com/r/GraphicsProgramming/comments/1g8m948/deterministic_global_illumination_is_entirely/
2
u/CompetitiveBeat5009 Feb 17 '26
What should i study to make the same thing?
1
u/MacksNotCool Feb 14 '26
how exactly is this deterministic? Like how do the reflections work if they are not raytraced?
1
u/Interesting-Proof-81 Feb 15 '26
This is so cool !
1
u/waramped Feb 15 '26
If I'm understanding correctly, by "inverting the IOR and doing displacement sampling", isn't this just effectively giving you a screen space reflection? Not a true reflection? (Not that that's BAD, I'm just trying to understand)
IE, if the object is randomly shaped (not symmetrical in any way), and the reflective surface was behind that object, would the reflection truly be the reflection, or just a displaced view of the Visible surface?
1
u/Thedudely1 Feb 15 '26
Is this vibe coded?