What I want is the following for a GZDooM map:
1. Outside fog (currently implemented using Thing 9039).
2. Fog applied to sky texture (currently implemented using "skyfog = <value>" in MAPINFO).
3. Independent fog values for the outdoor sector and the sky texture above it.
I have found that the skyfog value in MAPINFO overrides the RGB value using Thing 9039. So my question is this: is there a way to independently set the fog values for the sector and the texture?
If the skyfog value is always going to override the value of Thing 9039, is there any point in assigning the value in the thing?
The wiki reference on MAPINFO options for GZDoom's GL renderer was no help.
GZDooM MAPINFO: Proper use of Skyfog?
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.
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.
- NeuralStunner
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
- Contact:
Re: GZDooM MAPINFO: Proper use of Skyfog?
OutsideFog is available for non-GL maps as well. Does it work differently than using the fog Thing?
Re: GZDooM MAPINFO: Proper use of Skyfog?
There's an option for OutsideFogDensity, but it's not clear how this differs from OutsideFog.NeuralStunner wrote:OutsideFog is available for non-GL maps as well. Does it work differently than using the fog Thing?
The wiki defines OutsideFogDensity as "applies to outside fog (sectors with sky as ceiling or the 'outside fog' flag.)"
SkyFog is defined as "applies fog to the sky. <value> specifies the density."
From these definitions it would appear that the former works like the fog thing, and applies to the sector while the latter applies to the sky. In practice, however, this is not happening.
Re: GZDooM MAPINFO: Proper use of Skyfog?
I've tried different variations of the fog options, but I am unable to get sector fog and sky fog to be independently rendered. Skyfog always seems to trump sector fog, which makes me wonder what the purpose of skyfog as a separate entity from sector fog is in the first place.
Graf or Gez, any thoughts on this (skyfog being a GL feature)?
Graf or Gez, any thoughts on this (skyfog being a GL feature)?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GZDooM MAPINFO: Proper use of Skyfog?
Skyfog defines the density of fog to be rendered over sky planes. It will always take the fog color of the affected sector. It's merely a helper to make skies look better in fog sectors even when they are not designed for that.
Re: GZDooM MAPINFO: Proper use of Skyfog?
I think I understand what you're saying, and it appears that I may not have a fix for my problem. Still, maybe you can tell me if I have other options. Take a look at this picture:Graf Zahl wrote:Skyfog defines the density of fog to be rendered over sky planes. It will always take the fog color of the affected sector. It's merely a helper to make skies look better in fog sectors even when they are not designed for that.
You can see that the central part of the sky does not have much of a fog effect. Can anything be done about this?
Re: GZDooM MAPINFO: Proper use of Skyfog?
Unfortunately, I don't know much about this feature, but I do have a question. Is that map supposed to look like E1M5?
- esselfortium
- Posts: 3862
- Joined: Tue Sep 19, 2006 8:43 pm
- Contact:
Re: GZDooM MAPINFO: Proper use of Skyfog?
Are the mountains in the background supposed to look like they're made out of ice cream?
Distant mountains fading to white doesn't really work when your sky isn't also white.
Distant mountains fading to white doesn't really work when your sky isn't also white.

- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49230
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: GZDooM MAPINFO: Proper use of Skyfog?
I have to agree. The sky in that screenshot really looks ... ugly...