New effect: Adaptive fog

  • Posts: 343
4 years 2 months ago #1 by OtisInf
See pull request: github.com/crosire/reshade-shaders/pull/29

Adaptive fog is a simple depth-based fog effect which combines depth-based fogging with a bloomed version of the framebuffer to fake light diffusion. It's controllable through mouse coordinates to pick the fog color from the scene. Highly configurable so you can add whatever fog type you like. Bloom is from CeeJay's bloom filter.

Examples:
extreme fog parameters: farm2.staticflickr.com/1523/25856171573_45dbb6f64a_o.jpg
Fog with more normal parameters: abload.de/img/acs2016-04-1613-13-5883lv2.png
Fog off, same scene: abload.de/img/acs2016-04-1613-14-02mpcnn.png

Nothing fancy, but can help a great deal with screenshot creation :)
The following user(s) said Thank You: JPulowski, NattyDread, SpinelessJelly, klotim, jas01, Tycholarfero, Apocalypso, luluco250, Respect2, WLHM15 and 5 other people also said thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 343
4 years 2 months ago - 4 years 2 months ago #2 by OtisInf
Updated the shader a bit: it now has a fog start parameter and the color picked by the mouse is preserved after moving the mouse and toggling off the mouse overlay so you can pick a color and use that from then on.

(thanks NattyDread for testing & suggestions!)
The following user(s) said Thank You: Aelius Maximus, hunt1hunt

Please Log in or Create an account to join the conversation.

  • Posts: 43
3 years 4 months ago #3 by hunt1hunt
OtisInf,thank you for your Adaptive fog,how can use it in reshade 3.0?

Please Log in or Create an account to join the conversation.

  • Posts: 64
3 years 4 months ago #4 by WalterDasTrevas
Thanks, but I have the same question: how to use in ReShade3? :side:

Please Log in or Create an account to join the conversation.

  • Posts: 54
3 years 4 months ago #5 by GP-Unity
Please update for Reshade 3 :cheer:

Please Log in or Create an account to join the conversation.

  • Posts: 504
3 years 4 months ago #6 by Wicked Sick
I also liked that effect and the old bloom...

Please Log in or Create an account to join the conversation.

  • Posts: 101
3 years 4 months ago #7 by v00d00m4n
Just did fast and lazy port to Reshade 3. In theory, if I didn't forget anything, it should work but I had no time to test it so it could be broken.
Will test it later, you can post error logs here or try to fix missing bits yourself for now.
UI settings not implemented yet, will do that later when ill have time, for now configure it directly in shader

Damn Reshade forum engine thinks it spam, so grab code here:
pastebin.com/YYnqCkrP
The following user(s) said Thank You: Rudy102, hunt1hunt

Please Log in or Create an account to join the conversation.

  • Posts: 43
3 years 4 months ago #8 by hunt1hunt
hellow v00d00m4n:thank you very much,,,but has a error logs
02/03/2017 23:57:15:933 [19060] | INFO | Compiling 'F:\Program Files (x86)\五星之光\Hour\reshade306\adaptivefog.fx' ...
02/03/2017 23:57:15:935 [19060] | ERROR | Failed to compile 'F:\Program Files (x86)\五星之光\Hour\reshade306\adaptivefog.fx':
F:\Program Files (x86)\五星之光\Hour\reshade306\adaptivefog.fx(36, 1): error X3000: syntax error: unexpected 'identifier'
i tell you zhe lightroom.fx you can download www.nexusmods.com/skyrimspecialedition/mods/1437/ ?

Please Log in or Create an account to join the conversation.

  • Posts: 43
3 years 4 months ago - 3 years 4 months ago #9 by hunt1hunt
Warning: Spoiler! [ Click to expand ]
The following user(s) said Thank You: v00d00m4n

Please Log in or Create an account to join the conversation.

  • Posts: 101
3 years 4 months ago #10 by v00d00m4n
oops, my bad,
replace
define HDR_MODE
with
#define HDR_MODE 1

Please Log in or Create an account to join the conversation.

  • Posts: 43
3 years 4 months ago - 3 years 4 months ago #11 by hunt1hunt
sorry, v00d00m4n:thank you very much,,,but has a error logs
03/03/2017 02:40:07:081 [50656] | INFO | Compiling 'F:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00.fx' ...
03/03/2017 02:40:07:094 [50656] | ERROR | Failed to compile 'F:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00.fx':
F:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00.fx(165, 21): error X3004: undeclared identifier 'ReShade::LinearizedDepth'
F:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00.fx(165, 45): error X3000: syntax error: unexpected ','

03/03/2017 10:36:55:308 [20620] | INFO | Compiling 'D:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00(1).fx' ...
03/03/2017 10:36:55:319 [20620] | ERROR | Failed to compile 'D:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00(1).fx':
D:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00(1).fx(154, 66): error X3004: undeclared identifier 'MOL_ToggleKey'
D:\Program Files (x86)\五星之光\Hour\reshade306\adaptive_fogv00(1).fx(154, 66): error X3004: undeclared identifier "Otis_MouseToggleKeyDown"

Please Log in or Create an account to join the conversation.

  • Posts: 95
3 years 2 weeks ago #12 by NattyDread
Hey Otis, I gots me some new ideas for improving this shader (or depth haze). :side:
Hit me up if you have time or will to edit it a bit.

Please Log in or Create an account to join the conversation.

  • Posts: 343
2 years 10 months ago #13 by OtisInf
Sure, email me via flickr works best, I don't visit this forum that often ;)

Please Log in or Create an account to join the conversation.

  • Posts: 54
2 years 4 months ago #14 by sets
i have weird white square, rectangle on my screen, how to remove them ?

Please Log in or Create an account to join the conversation.

  • Posts: 54
1 year 8 months ago #15 by GP-Unity
Hello :cheer:
Any way to disable Adaptive fog during 2D segments of a game (pre-rendered cutscenes)? Other depth based effects like MXAO and DoF don't bleed through these cutscenes.

Please Log in or Create an account to join the conversation.

  • Posts: 343
1 year 8 months ago - 1 year 8 months ago #16 by OtisInf
No, sorry. Bind a key to the effect in reshade to toggle it on/off manually

Please Log in or Create an account to join the conversation.