Page 1 of 1

[no] ability to turn off depth fog only

Posted: Tue Oct 18, 2005 14:27
by Nuxius
Currently in GZDoom, when you disable the depth fog, you disable all fog; I would like to have an option that just disables the black depth fog that appears normally throughout levels, but not any fog that the level designer sets.

Posted: Tue Oct 18, 2005 17:00
by ellmo
To my knowledge, the intensity of the GL Fog can be set in MAPINFO by:
FOGDENSITY x
where x varies 0 (that's no fog I think) - 255 (Dunno, pitch black?).

Posted: Tue Oct 18, 2005 18:59
by Graf Zahl
But that''s for all fog.

@Nuxius: Why?

Posted: Wed Oct 19, 2005 1:12
by Nuxius
Because it mucks up too much stuff, especially for brighter sectors, and where other types of fog are involved.

Say, if a sector is 240 and the sector next to it is 224, up close they look like they should, with very little differences between them. But the further away you go, the larger the contrast is between them, until the 224 sector looks almost pitch black, with the 240 sector still being bright.

An example of it messing with other fog is TNT3, the large pit area with the brownish fog, the cages on the other sides of the pit come out as black voids, which IMO ruins the effect.

Unfortunately, your depth fog is just way to different from actual Doom depth fog, to the point of where I would rather not have it at all.

Posted: Wed Oct 19, 2005 9:03
by Graf Zahl
If I could limit the maximum density the fog can have I'd do it. But the formulas involved are far too primitive.

The TNT3 effect is because these cages also contain fog (much darker though.) I could draw a boundary there as well but it would cause far more problems in other maps if I did.

Posted: Wed Oct 19, 2005 11:20
by Graf Zahl
I already did some adjustments to create an effect that is closer to the software renderer so hopefully you don't need that option at all.

But you were right. For some of the brighter light levels it got far too dark and for the darker light levels it stayed too bright in the distance.

Posted: Wed Oct 19, 2005 14:37
by ellmo
But you will leave the option to use the Fog as it is now? I tremble in fear before the idea of rebuilding my netire map...

Posted: Wed Oct 19, 2005 15:21
by Graf Zahl
Of course. I have added a second lighting model that is much closer to Doom's software renderer. On some maps the difference is quite striking and with the new model it looks much better now. But I will make this an option in the menu so that the current model is still available.

Posted: Fri Oct 21, 2005 19:31
by Nuxius
The TNT3 effect is because these cages also contain fog (much darker though.)
Yeah, you're right, I should've looked a bit more into that before saying anything. So that problem popping up in one of my maps is out of the way. :D

Anyway, just downloaded 0.9.12 the other day, and I have to say, great job. This looks a thousand times better than the old fog. :thumb: I'm actually using the "Bright" option, because the "Doom" one is just a bit too dark for me (like software mode is). I figure it's better than having to up the gamma, which is something I'd rather avoid.