New effect: Adaptive fog

More
4 years 5 months ago #1 by OtisInf
New effect: Adaptive fog was created 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.

More
4 years 5 months ago - 4 years 5 months ago #2 by OtisInf
Replied by OtisInf on topic New effect: Adaptive fog
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!)
Last edit: 4 years 5 months ago by OtisInf.
The following user(s) said Thank You: Aelius Maximus, hunt1hunt

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

More
3 years 7 months ago #3 by hunt1hunt
Replied by hunt1hunt on topic New effect: Adaptive fog
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.

More
3 years 7 months ago #4 by WalterDasTrevas
Replied by WalterDasTrevas on topic New effect: Adaptive fog
Thanks, but I have the same question: how to use in ReShade3? :side:

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

More
3 years 7 months ago #5 by GP-Unity
Replied by GP-Unity on topic New effect: Adaptive fog
Please update for Reshade 3 :cheer:

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

More
3 years 7 months ago #6 by Wicked Sick
Replied by Wicked Sick on topic New effect: Adaptive fog
I also liked that effect and the old bloom...

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

More
3 years 6 months ago #7 by v00d00m4n
Replied by v00d00m4n on topic New effect: Adaptive fog
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.

More
3 years 6 months ago #8 by hunt1hunt
Replied by hunt1hunt on topic New effect: Adaptive fog
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.

More
3 years 6 months ago - 3 years 6 months ago #9 by hunt1hunt
Replied by hunt1hunt on topic thank marty and his lightroom.fx
Warning: Spoiler!
Last edit: 3 years 6 months ago by hunt1hunt.
The following user(s) said Thank You: v00d00m4n

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

More
3 years 6 months ago #10 by v00d00m4n
Replied by v00d00m4n on topic New effect: Adaptive fog
oops, my bad,
replace
define HDR_MODE
with
#define HDR_MODE 1

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

More
3 years 6 months ago - 3 years 6 months ago #11 by hunt1hunt
Replied by hunt1hunt on topic New effect: Adaptive fog
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"
Last edit: 3 years 6 months ago by hunt1hunt.

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

More
3 years 3 months ago #12 by NattyDread
Replied by NattyDread on topic New effect: Adaptive fog
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.

More
3 years 1 month ago #13 by OtisInf
Replied by OtisInf on topic New effect: Adaptive fog
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.

More
2 years 7 months ago #14 by sets
Replied by sets on topic New effect: Adaptive fog
i have weird white square, rectangle on my screen, how to remove them ?

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

More
1 year 11 months ago #15 by GP-Unity
Replied by GP-Unity on topic New effect: Adaptive fog
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.

More
1 year 11 months ago - 1 year 11 months ago #16 by OtisInf
Replied by OtisInf on topic New effect: Adaptive fog
No, sorry. Bind a key to the effect in reshade to toggle it on/off manually
Last edit: 1 year 11 months ago by OtisInf.

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