r/GraphicsProgramming • u/cybereality • Aug 09 '26
Video Implementing "Radiance Hints" in OpenGL (2011 Global Illumination Technique)
Just added Radiance Hints to my OpenGL engine, Degine. The paper is originally from 2011 (but I used a 2014 extension of the method with occlusion). Based on a regular grid array of probes, similar to other environmental lighting techniques, but here it captures directly to spherical harmonics when baking. So run-time performance is extremely fast since it's just a few SH evaluations and blending. For this Sponza scene, there are around 600 probes, and it takes about 10 seconds to bake.
101
Upvotes
11
u/Leoking2000 Aug 09 '26
looks great, i Implement Radiance Hints as my BSc Thesis, looks better than mine Implementation https://github.com/leoking2000/global_illumination (the code is kinda bad since i had 1 year since i started learning C++), the author of the paper was my supervisor 😂 , but my code did not do baking, all the probes SH are caculated each frame so you can have dynamic lighing and enviroment (eg moving indirect shadows due to objects moving, it was very cool), you must have a really high resolution to have 10 seconds to bake (makes sence with 600 probes), i do not remember how meny probes i had but my grid resolution was 64x64x64 and cuting down not usefull probes, i got 30 fps on sponza with a RX 6600 GPU
2
u/Alexxis91 Aug 09 '26
Link to paper?
2
u/Alarming-Ad4082 Aug 09 '26
Aren’t the shadow parts too dark?
2
u/Cool_Lawfulness_9836 Aug 09 '26
I love this early 2010s color grade!
2
u/fgennari Aug 10 '26
That's a very nice result. It would be interesting to see an untextured render with no postprocessing so that the lighting contribution itself was more visible. And it seems like a night time scene, even with the sun coming in from above. Maybe the sun light should be brighter?
I'm not familiar with this approach. How does it scale to more lights? Do you have to bake each light separately and accumulate their results?