Making fog look good in GZDoom.
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.
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
Re: Making fog look good in GZDoom.
Here's a demo map with the relevant effect. Grab the torch and light it up, observe the difference between 890 and an earlier version. (it should be the same as the screenshots)
- Attachments
-
wfogtest.zip
- (2.03 KiB) Downloaded 42 times
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Making fog look good in GZDoom.
Ok, now I see it (only when shaders for lights are turned off, BTW)
But this is not a side effect of the change to the fog calculations. For some reason the engine thinks that the top side of the water is foggy.
But this is not a side effect of the change to the fog calculations. For some reason the engine thinks that the top side of the water is foggy.
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
Re: Making fog look good in GZDoom.
The underside too, if you drop into the water it looks the same. And yet it doesn't seem to do that pre-890. (as in those versions the water looks nothing like other foggy sectors do when I light the torch up in those)
And for some reason I don't have a shaders for lights option, only for texture warp/fog/colormaps/glowing textures.
And for some reason I don't have a shaders for lights option, only for texture warp/fog/colormaps/glowing textures.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Making fog look good in GZDoom.
The underside looked the same for me in older versions.
Concerning the options, that's not surprising if you got an older graphics card. Shaders for lights is only available for DX10/GL3.x compatible hardware.
Concerning the options, that's not surprising if you got an older graphics card. Shaders for lights is only available for DX10/GL3.x compatible hardware.
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
Re: Making fog look good in GZDoom.
What does it look like above water with light shaders on? Always foggy (even pre-890)?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49223
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Making fog look good in GZDoom.
Should be correct now. There was a duplicated variable name introduced by my recent fog fixes which picked some information off the model sector when rendering 3D floors even though that was not supposed to happen. And your model sector happened to have fog...
One thing about your light though: It's pure yellow, with the blue channel 0. This means it won't be visible at all on a pure blue surface like the water. If you define lights you should always make sure that none of the 3 color channels is 0. As a rule, the least intensive channel should always be at least 30% of the most intensive to avoid making it look odd on textures with strong primary colors.
Yes, I know the internal light definitions violate this, too, but I haven't made them...
One thing about your light though: It's pure yellow, with the blue channel 0. This means it won't be visible at all on a pure blue surface like the water. If you define lights you should always make sure that none of the 3 color channels is 0. As a rule, the least intensive channel should always be at least 30% of the most intensive to avoid making it look odd on textures with strong primary colors.
Yes, I know the internal light definitions violate this, too, but I haven't made them...
- 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: Making fog look good in GZDoom.
Noted!Graf Zahl wrote:If you define lights you should always make sure that none of the 3 color channels is 0.
