GZDooM MAPINFO: Proper use of Skyfog?

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
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

GZDooM MAPINFO: Proper use of Skyfog?

Post by ReX »

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.
User avatar
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?

Post by NeuralStunner »

OutsideFog is available for non-GL maps as well. Does it work differently than using the fog Thing?
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by ReX »

NeuralStunner wrote:OutsideFog is available for non-GL maps as well. Does it work differently than using the fog Thing?
There's an option for OutsideFogDensity, but it's not clear how this differs from OutsideFog.

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.
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by ReX »

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)?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by Graf Zahl »

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.
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by ReX »

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.
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:
Fog effect on sky is quite limited
Fog effect on sky is quite limited
PGMap504.jpg (34.73 KiB) Viewed 990 times
You can see that the central part of the sky does not have much of a fog effect. Can anything be done about this?
Sodaholic
Posts: 1959
Joined: Sat Nov 03, 2007 4:13 pm

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by Sodaholic »

Unfortunately, I don't know much about this feature, but I do have a question. Is that map supposed to look like E1M5?
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm
Contact:

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by esselfortium »

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. :P
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: GZDooM MAPINFO: Proper use of Skyfog?

Post by Graf Zahl »

I have to agree. The sky in that screenshot really looks ... ugly...
Locked

Return to “Editing (Archive)”