PDA

View Full Version : Fog


bobbrisard2k
12-16-2002, 04:34 PM
hi all , how to add a fog effect in eduke ??
thank

Roger
12-16-2002, 06:00 PM
There's no fog effect added in EDuke of which I know. You must've read what Matt wanted to put in future EDuke's.

Usurper
12-17-2002, 12:07 AM
I requested it during development. Request was denied. Would have required making an alt. palette use an alternate shade table. At least that's how SW did it.

Hudson
12-20-2002, 01:17 PM
-=Reaper_Man=- faked a puesdo fog effect in A.W.O.L. (eDuke 2.0) not sure how he pulled it off though.. and I havent really talked to him in a while.

Roger
12-23-2002, 06:00 PM
I did pull off this one trick to imitate fog (unfortunately crashing Build so I couldn't save it). I made a long box room with regular visibility and put masked walls in front of each side. I hit T on them twice and gave it that pure-blue sky texture, gave it a spritepal of 1, and shaded it at 128. Worked like a charm, but (like I said) Build crashed. Maybe I should download that Redneck Rampage Build off my CD again...

Mblackwell
12-23-2002, 11:20 PM
There are 3 ways to create fog in Duke, not including through BUILD, (4 if you think about the fact that one has 2 different ways of going about it).

1) Palfrom the screen grey constantly. This is what Reaperman did in AWOL.

2) Have a sprite that checks how far away the player is, then it either palfroms the screen lighter or darker depending on how you want it to work. This allows you to have the fog a bit more realistic if done correctly.

3) Use sprite fog. This is generally a good method for volumetric fog. I use it for such and it works really really well, though it can be slow if you use ALOT of fog sprites. It can look fantastic though.