Floor fog effects

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Dancso
Posts: 1906
Joined: Wed Oct 11, 2006 10:39 am
Location: at home.. Status: lazy like hell

Floor fog effects

Post by Dancso »

Hey.

I've been playing around with 3d floors, and have managed to pull off a (in-my-opinion) pretty good looking "floor fog".
You could also call it dust clouds or whatever. I took three screenshots of it with depth fog, without, and with bright sector mode. (other two is dark sector light mode)

It is GL renderer only.
Spoiler: Depth fog on, dark sector lightning mode
Spoiler: Depth fog off, dark sector lightning mode
Spoiler: Depth fog on, bright sector lightning mode
My story:
When I first saw the map GVH08 - The hunting grounds from Ghouls vs Humans, I saw the fog made up of transparent sprites. I thought - Hey, that looks kinda cool, although it looks kind of strange if you look at it from far above (cyborg flying up for example) Or if you look at it from the edge of the foggy area. I figured i should make a test map for better effect, which I tried to make look like a crypt of some sort. Although i was short on proper textures and didn't want to spend much time on the architecture, I drew what I had in mind and made my attempts.

At first I only tried using one layer or 3d floor, with a texture preferably. I chose "ZIMMER8" and it turned out to be a perfect fit. Unfortunately it looked a bit too static so I made another 3Dfloor overlap the existing one, and make the two scroll against eachother. I was simply amazed of how good it turned out to be. Finally I decided to do IT. I made 31 3Dfloors and found a good enough alpha value. I made a quick script to randomize all of the layers' scrolling, and got this.

http://www.speedyshare.com/files/21743923/crypt2.wad (size 42,4 kb)
Includes an ambient sound file from Doom3 IIRC, and a mapinfo lump to change that jumpy D_RUNNIN for best effect :P

The trick:
Multiple 3D floor effects are drawn with additive translucency, with a low alpha value. This way, the several layers of fog adds up into this effect. For additional detail, you could make the 3d floors scroll the texture in some random way so the fog doesn't look too static.

The effect in the screenshots use 31 layers of 3d floors,
Flags: 64
Type: non-solid
Alpha: 6 (which adds up to 186 if you multiply by 31, since it is additive translucency

Every sector was given depth fog, with each color value being 108.

Software compatible floor fog concept:
Portal tricks. One could make the upper sector's floor clip the player in like water does in hexen, as deep as tall the lower sector is. Give the lower sector a depth fog and voila? Might make a test map later on for this.

--------------------
Tell me what you think. Actually, I might not be the first one to make such an effect, let me know about it. Feel free to discuss.
Last edited by Dancso on Fri Apr 02, 2010 1:15 pm, edited 1 time in total.
AconyX

Re: Floor fog effects

Post by AconyX »

Realistic fog indeed.
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Re: Floor fog effects

Post by CaptainToenail »

Nice work, I tried this before with an orange haze, but I lost patience, couldn't get it working :x
User avatar
Tails Butt
Posts: 46
Joined: Mon Apr 06, 2009 8:50 pm
Location: GA: United States

Re: Floor fog effects

Post by Tails Butt »

Most helpful example. Gives me ideas to expand on for both layered fog and dynamic sky clouds to experiment with.
User avatar
Nash
 
 
Posts: 17484
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Floor fog effects

Post by Nash »

Dancso wrote:Actually, I might not be the first one to make such an effect, let me know about it. Feel free to discuss.
Yeah this trick isn't exactly new... I think solarsnowfall made a WAD demonstrating this exact effect like waaaay back in 2005 when GZDoom was at like some super early version (like zero-point-something).
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Floor fog effects

Post by Project Shadowcat »

That doesn't make it any less cool.
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Re: Floor fog effects

Post by DoomRater »

Awesome "lightning" mode, but where's the thunder? Yeah, it looks good.
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Floor fog effects

Post by Ryan Cordell »

Oh wow. I remember this from long ago. Where have the days gone by? ._.
Locked

Return to “Editing (Archive)”