Weeee!
A self-shadowing smoke-simulator, with a crap framerate! ;D
Download the non-webstartable zipper
http://www.songprojector.com/temp/smoke_demo_0.png
http://www.songprojector.com/temp/smoke_demo_1.png
You need a fairly fast computer to get this running smooth, as it raytraces itself every frame. :
P4 2.4GHz / ATi 9700pro -> 5fps (client vm 1.5) -> 10fps (server vm 1.5)
All raytracing, sorting, shading and lighting is done on the CPU. Argh!
Rendering the 2k sprites is done by the GPU.
The first versions did 10s / frame, I’m glad it is running at interactive framerates.
4 rays per sprite (every corner) are used for realistic shading.
You can poke a few keys to change the variables:
Q+A = specular
W+S = diffuse
D+E = ambient
R+F = light angle
T+G = transparancy
I wish the best of luck to all of those without a QWERTY keyboard

