Wednesday 7 January 2009

Volumetric Particle Shadowing

This has been available for a while in the CUDA 2.1 SDK beta download, but since the PDF isn't on the web yet it hasn't had much exposure, so I thought I'd post something about it here. It's a very simple technique which is based on an old volume rendering trick by Joe Kniss, but it can achieve some great looking results. The basic idea is to that instead of sorting the particles in back-to-front or front-to-back order, you sort them along a vector half way between the view and light directions. You then render the particles in batches, accumulating the shadows to a 2D texture as you go. You can even add some blur to simulate scattering. Details are in the PDF (fixed link). Oh, and there's a short movie here.

4 comments:

Unknown said...

Really nice looking, but the link to the pdf doesn't work :( Will you be uploading it somewhere else?

Simon Green said...

Thanks. The link should be fixed now.

Unknown said...

It is! Thanks!!

Bob Hazard said...

My god that's pretty