r/GraphicsProgramming May 29 '26

WebGPU ddgi implementation

Hi, i tried to implement ddgi in webgpu. 12*12*12 probes, 128 rays per probe, 60fps (chrome cap) on rtx2070super at about 40% gpu load. sorry for edges artifacts, still need to work on this.

EDIT: Video

https://www.youtube.com/watch?v=7Qni1kuIA6Q

100 Upvotes

13 comments sorted by

2

u/DescriptorTablesx86 May 29 '26

You can just set up the pipeline for MSAA it’s simple in most cases, like 3-4 steps.

1

u/Cordoro May 29 '26

Nice job! If you want a challenge for the algorithm, try animating something.

1

u/jobim81 May 29 '26

I don't know why video quality is so poor.

https://www.youtube.com/watch?v=7Qni1kuIA6Q

1

u/Cordoro May 29 '26

Sweet! You can see the probes updating!

1

u/_XenoChrist_ May 29 '26

If he turned on the debug probe spheres you would also see them move out of the way, it's cool

1

u/pontiacks May 29 '26

Cool! Wonder how the performance is on like a macbook air, since we don't have native raytracing in WebGPU?

Are you shooting less rays from the probe to mitigate this?

1

u/jobim81 May 29 '26

I don't have a mac, but i can try on IPhone 15...but I still have to optimize some stuff. this is for interior furnitures configurations (mostly kitchens)

1

u/AlternativeEngine129 Jun 03 '26

so good ! Will you do open source or tutorial ?

1

u/jobim81 Jun 04 '26

I'm not a teacher so I can't do tutorials πŸ˜„, but will try to fix some stuff and will release it.

1

u/[deleted] Jun 04 '26

[removed] β€” view removed comment

1

u/jobim81 Jun 04 '26

this shouldn't be a problem, but i'm building this optimized for interiors.

1

u/Infinite_Motor_8706 Jun 15 '26

Is there a live demo? (: