This file contains both the "modified" .ps files to remove the blur effect from Beef's NVGs AND the instructions on how to enable it. The instructions are specific to GAMMA, but should work with base game Anomaly. On 2023/07/27 I "updated" the .7z upload. The only change made was to the read me.txt. I fixed some spelling errors AND clarified some of the changes that were made.
You don't even need to download anything. You can if you want to create a installation "patch" for mod organizer. This was made for my installation of GAMMA, so the included readme is built around that file structure. However, IF you are installing these mods to Anomaly you shouldn't have any problems within it's file structure. Do yourself a favor. Download Beef's NVG mod. Use it. It's great. If you want to remove the blur after trying it, keep reading.
Link to Beef's NVG Mod. It's amazing and you should use it too: Moddb.com
"Author's" notes:
I take no credit at all for any of these fixes, nor do I claim myself to be the author. I am not Beef, nor any of the mentioned individuals in the credits. This was simply something I did for my own installation of Anomaly + GAMMA because I really like everything about the NVG effect except that close-blur effect.
This is an incredibly simple fix to totally remove the "Near Blur" effect from "BEEF'S SHADER BASED NIGHT VISION EFFECT". I simply hashed out a specific line of code in each of the 3 NVG shader ".ps" files. You don't even need a "mod" to do this, and you can do it yourself directly in the existing files. If you choose to DIY, don't bother "installing" any mod. Just edit the .ps files yourself for the same effect. It would be one less thing cluttering up your mod organizer. You still need to delete your shader casche folder for the changes to take effect.
The 3 files I edited are all in the same folder:
\gamedata\shaders\r3
nightvision_gen_1.ps
nightvision_gen_2.ps
nightvision_gen_3.ps
Look for the following single line of code in "nightvision_gen_1.ps", "nightvision_gen_2.ps":
image = lerp(image,half_res_blur,clamp(1-smoothstep(0,15,depth),0.4,1));
And for "nightvision_gen_3.ps":
image = lerp(image,half_res_blur,clamp(1-smoothstep(0,15,depth),0.2,1));
Simply add a pair of forward slashes to the beginning of the line:
EXAMPLE:
//image = lerp(image,half_res_blur,clamp(1-smoothstep(0,15,depth),0.4,1));
All that was done was "hashing" out that specific line with a pair of forward slashes. Basically: This line is no longer considered when the program is runs. You must do this to all 3 of the aforementioned files OR to the specific NVG that you want to avoid the up-close blur effect.
The final thing to do BEFORE restarting Anomaly/GAMMA is to Delete the Anomaly\appdata\shaders_cache folder. The game itself will take a moment on startup to rebuild your shaders, and the changes made will take effect to the NVGs. This is really simple, and there is a readme file included should you choose to download this. Honestly, I don't know why you would. This is a simple solution involving six forward slashes across 3 notepad documents. But I am putting it here as an example that can be used as is. The included readme credits the OG author & his credits. I take none, nor do I want any. The readme file also has typos and grammatical errors. I am not at all concerned. I just wanted to quickly go back to playing my game but now with crispy NVGs.
Based
Holy ****, finally, someone found a solution for this... you're a real one man.
You are truly a lifesaver, vanilla Beef NVGs are really hard to use on CQC situations.
Thanks a lot or this.
For anyone who cares about realism: This is not realistic. I'm not saying this mod is bad, but Beef deliberately made near objects blurry, because thats how night vision goggles work in real life. This is still a great mod, and perfect for anyone not caring about realism in a game. Thanks for uploading!
Hello
I've been waiting for this mod for a long time. thanks for that. 10/10
best regards from Germany
it took almost 2 years but we finally have this, thank you very much dude godspeed
Author, what should i edit if i just want to make it less blur? not entirely un-blured
I did a bit of testing on your question tonight. With this not being my code, nor me being any sort of coder, I observed the following:
I opened my "modded" version of "nightvision_gen_3.ps" with notepad, and found the line of code:
//image = lerp(image,half_res_blur,clamp(1-smoothstep(0,15,depth),0.2,1));
I removed the two forward slashes AND then changed one variable to:
image = lerp(image,half_res_blur,clamp(1-smoothstep(0,15,depth),0.2,.60));
I saved this change, and then deleted the anomaly/appdata/shaders_cache folder and restarted the game. It looked to me like that specific variable controls the intensity of the blur, with the 1.0 variable being full blur, vs .60 which is considerably less "blurry" at near distances (60% of the full blur?). Changing that variable to 0.0 seems to have the same visual effect as hashing off that entire line of code which would indicate to me 0%. I hope that isn't too complicated of an explanation, and without checking could assume that modifying the same variable across the other 2 NVG files should offer the same result. .60 is considerably less "blurry" than the 1.0 variable, and may be a good place to start tinkering. Keep in mind that you must delete your anomaly/appdata/shaders_cache after editing these files so that the changes take effect.
I'd say to try it out, and if you do please let me know if you observe the same thing. This is all new to me too lol.
it works as intended! thank you!
btw, i also tweak the gen 3 color option in "night_vision.h" to somehow resembles MW green-blue, but minus the flashlight effects of said game. ofc that effect can be achieved by turn on head torch on the lowest level of brightness of the NVG.
heres the color code if u want to try,
#define gen_3_saturation_color float3 (0.3,1,0.8)
edit this lines under "// NVG COLOR OPTIONS:"
p.s. by any chance, do u know how to further reduce washout effect of bright lighted object (flashlight, fire, general lighting, etc) aside from in game MCM option?
I might end up using this tbh. I can't fight at night reliably.
Great, now just need to find someone who make a flip up device animation...
Is there any way to also make them a bit less pixelated/noisy?
you are the GOAT