It's not as hard as you think. Maybe search for "volumetric fog" in forums, been done before. I worked on similar effect for an old project called The Kid in 3dgs. It's just a matter of creating just enough sprite fog models at varying distances in front of camera, or more precisely, creating effect() fog particles in front of the camera. The hardest part is getting enough fog particles at random distances in front of camera to look good and also use directx fog to blend out distance, but not so many to kill FPS.

After you get fog particles in front of camera to start with, it just takes some time to tweak them out with testing.

I would show the old code, but wouldn't make much sense with stuff like flashlights and stuff in it, plus it is like 5 years old, wouldn't really aplly to current 3dgs, but if you really want to see the old code, let me know.


Professional A8.30
Spoils of War - East Coast Games