Welcome, Guest.
Username: Password: Remember me

TOPIC: New effect: Adaptive fog

New effect: Adaptive fog 1 year 4 months ago #1

  • OtisInf
  • OtisInf's Avatar
  • Offline
  • Posts: 146
  • Thank you received: 67
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 administrator has disabled public write access.
The following user(s) said Thank You: JPulowski, NattyDread, SpinelessJelly, klotim, jas01, Tycholarfero, Apocalypso, luluco250, Respect2, WLHM15 and this user have 3 others thankyou

New effect: Adaptive fog 1 year 4 months ago #2

  • OtisInf
  • OtisInf's Avatar
  • Offline
  • Posts: 146
  • Thank you received: 67
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: 1 year 4 months ago by OtisInf.
The administrator has disabled public write access.
The following user(s) said Thank You: Aelius Maximus, hunt1hunt

New effect: Adaptive fog 6 months 5 hours ago #3

  • hunt1hunt
  • hunt1hunt's Avatar
  • Offline
  • Posts: 24
  • Thank you received: 2
OtisInf,thank you for your Adaptive fog,how can use it in reshade 3.0?
The administrator has disabled public write access.

New effect: Adaptive fog 6 months 3 hours ago #4

Thanks, but I have the same question: how to use in ReShade3? :side:
The administrator has disabled public write access.

New effect: Adaptive fog 5 months 4 weeks ago #5

  • GP-Unity
  • GP-Unity's Avatar
  • Offline
  • Posts: 27
  • Thank you received: 6
Please update for Reshade 3 :cheer:
The administrator has disabled public write access.

New effect: Adaptive fog 5 months 3 weeks ago #6

  • Wicked Sick
  • Wicked Sick's Avatar
  • Offline
  • Die young or suffer (Forgive my poor English)
  • Posts: 368
  • Thank you received: 106
I also liked that effect and the old bloom...
Finding relief somewhere between a tree's branch and its shade.
The administrator has disabled public write access.

New effect: Adaptive fog 5 months 3 weeks ago #7

  • v00d00m4n
  • v00d00m4n's Avatar
  • Offline
  • Posts: 72
  • Thank you received: 17
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 administrator has disabled public write access.
The following user(s) said Thank You: Rudy102, hunt1hunt

New effect: Adaptive fog 5 months 3 weeks ago #8

  • hunt1hunt
  • hunt1hunt's Avatar
  • Offline
  • Posts: 24
  • Thank you received: 2
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/?
The administrator has disabled public write access.

thank marty and his lightroom.fx 5 months 3 weeks ago #9

  • hunt1hunt
  • hunt1hunt's Avatar
  • Offline
  • Posts: 24
  • Thank you received: 2
Warning: Spoiler! [ Click to expand ]
Last Edit: 5 months 3 weeks ago by hunt1hunt.
The administrator has disabled public write access.
The following user(s) said Thank You: v00d00m4n

New effect: Adaptive fog 5 months 3 weeks ago #10

  • v00d00m4n
  • v00d00m4n's Avatar
  • Offline
  • Posts: 72
  • Thank you received: 17
oops, my bad,
replace
define HDR_MODE
with
#define HDR_MODE 1
The administrator has disabled public write access.

New effect: Adaptive fog 5 months 3 weeks ago #11

  • hunt1hunt
  • hunt1hunt's Avatar
  • Offline
  • Posts: 24
  • Thank you received: 2
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: 5 months 2 weeks ago by hunt1hunt.
The administrator has disabled public write access.

New effect: Adaptive fog 2 months 1 week ago #12

  • NattyDread
  • NattyDread's Avatar
  • Offline
  • Posts: 87
  • Thank you received: 90
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.
The administrator has disabled public write access.

New effect: Adaptive fog 1 week 3 days ago #13

  • OtisInf
  • OtisInf's Avatar
  • Offline
  • Posts: 146
  • Thank you received: 67
Sure, email me via flickr works best, I don't visit this forum that often ;)
The administrator has disabled public write access.