r/GraphicsProgramming • • 28d ago

Video Global illumination using Radiance cascades with Ray splitting in Unreal + Article

Implemented Radiance cascades with ray splitting in unreal.
This results in global illumination that doesn't require reprojection, and accumulates very fast thus having very little ghosting.
I wrote an article explaining how it works here:
It's based on this recent paper

115 Upvotes

11 comments sorted by

2

u/moschles 27d ago

I reviewed the article and the paper. Now I really want to see (RC) + (traditional ambient occlusion.)

You should mix them using a "darken only" filter.

2

u/Twenmod 27d ago

Adding traditional AO helps quite a bit,
since this way of doing RC struggles with detail that is closer than the size of a cascade 0 primary or secondary probe.
So adding it on top helps with the small crevices.

here is a comparison,
(note idk what type of AO this is using its whatever unreal enables with the ambient occlusion checkbox haha)
https://imgur.com/a/QckefOr

6

u/JoelArt 28d ago

Impressive! I don't program but I use 3D and I love to see this technique gianing traction.

4

u/cplusplus_ 28d ago

Saw your post in the Radiance Cascades discord as well. Looks great! Can't wait to look at your implementation and read through your writeup. Thanks for sharing!

1

u/mad_ben 27d ago

Is that Intel Sponza? Do you have it by any chance in UE5 format? 

1

u/Twenmod 27d ago

Blender loads the dds textures it comes with so re-exporting it to gltf via blender let's unreal load it normally

Unless I'm confusing this with bistro. But unreal can just load gltfs

2

u/mad_ben 27d ago

I tried usd import. It feels slugish but works. However curtains need to be placed by hand. 

2

u/Twenmod 27d ago

to keep the scene hierarchy you need to use "import into scene" otherwise it just imports all meshes separately

1

u/mkh33l 12d ago

Looks really good!

What are the most challenging parts about RCs and can you use traditional shaders or modern hardware raytracing to assist with accuracy?

Edit: I saw your comment about AO after posting. To me it looks like a double edged sword if you look at the handles right of the TV. https://imgur.com/a/QckefOr

1

u/Twenmod 12d ago

Its more the other way around, RC is assisting the ray tracing to get better results with less samples.
It merges the samples based on intervals to get the needed angular vs spatial resolution in the right spots.
and those samples are the HW Rays or possibly other kind of light samples.

The challenging part of RC is getting it in 3d in a scalable way which is what the ray splitting technique tries to do.

2

u/DrDumle 27d ago

Thank you for this!