"Accept change and survive. Resist change and die."
- Ray Norda, Chairman, Novell

Framework 4 (Last updated: October 25, 2019)
Framework 3 (Last updated: February 6, 2017)
Framework 2 (Last updated: October 8, 2006)
Framework (Last updated: October 8, 2006)
Libraries (Last updated: September 16, 2004)
Really old framework (Last updated: September 16, 2004)
Sunday, May 4, 2003 | Permalink

Source code
Glow.zip (399 KB)

This demo shows how to get glow into the scene. The idea is simple. Just render the object you want to be glowing into a texture, then apply a blur filter and add that on top of the scene in the final pass. Since we're blurring anyway the texture you render to doesn't need to be very large, in fact, I used 128x128 but even smaller would have been quite fine too. To get perfectly fine blurring I first apply a blur filter, then blur the blur, and for final perfection, blur the blurred blur. The last blurring pass can often be skipped, but I had fillrate to burn anyway. In order for the glow to be more visible I applied a simple trick that expanded the object slightly along its normals when I render it to the texture.

It should run on Radeon 9500+ and on GeForce FX.