Night vision shader for anomaly re-imagined. Now features MCM settings to adjust NVGs to your taste, a totally rewritten rendering pipeline, and a bunch more.
* Breaking News*
New update in the works. I won't hit everything on the roadmap listed in first comment but will additionally add DX8/9 support (minus some features that are computationally expensive), as well as some other fixes.
Thanks to F.E.A.R and Haruka for Russian translation
Introduces a shader based NVG effect to Stalker Anomaly, instead of the more limited .ppe effect. Currently replaces Gen1 thru Gen3 head mounted NVG effects. Can be expanded by modders to create additional effects, such as non-fullscreen NVG scopes and other possibilities.
New Keybinding: Long press "N" (or your nightvision keybind) to enable/disable NVGs, short press to adjust brightness
Follow future developments at Github.com
**********************************************
MUST READ THIS SECTION
**********************************************
Functions on DX10/11 only - future DX8/9 compatibility is possible, but I'm not touching it just yet.
After installing this mod or making any adjustments to night_vision.h, you must restart the game and select DELETE SHADER CACHE or changes will not take effect. The Anomaly launcher recompiles its shaders from the gamedata/shaders folder ONLY if this option is checked. Once you have done this once, you will not need to do it again unless you make changes to head_mounted_nvg_shader.h or other shaders.
**********************************************
END MUST READ
**********************************************
Installation Steps:
- If you have Glossy SSR, Enhanced Shaders, Arszi Rad overhaul, place these before Beef's NVGs
- Install Beef's NVGs
- If you are using Glossy SSR and Enhanced shaders, , use the included patch. now (currently the patch included with those mods is for NVG v0.9 and will not work)
- If you are using Enhanced shaders but not glossy SSR, use the included patch now.
- If you are using Glossy SSR but not enhanced shaders, use the included patch now.
- If you are using Arszi's rad overhaul, use the included patch now.
- Configure MCM
- Calibration per-PC is still in its draft stage, a better process is in the works but this is one way to do it.
- First, load up in debug mode
- In MCM menu, turn min gain as high as it goes, and max gain as low as it goes
- Go outdoors in some map and change the weather to clear_1 and time to midnight
- Turn on Gen 3 NVGs and adjust the gain offset higher or lower until the moonlight on the ground and buildings just barely doesn't wash out - after changing MCM setting you have to turn off and back on the NVGs for it to take effect
- Change the weather to cloudy_2_dark change max gain to 2, then turn off and on the NVGs. Quick press N until you are at the brightest setting. You should be able to see outside "ok" with Gen 3 but somewhat poorly with gen 1 and gen 2. If you want more brightness you can increase max gain slightly more. If you want to focus on 'gameplay' and don't like the 'realism' then go back to step 5 and increase your gain offset so that the 'base' brightness is higher, then come back to step 6 and so on.
- Change the time to noon and keep the weather on cloudy_2_dark. Quick press N until you are at the lowest setting. Adjust the min gain in MCM lower until you can see during the day (should be somewhere between 0.3 and 0.5 generally)
- Adjust the number of tubes per generation as you see fit, as well as the overlays you want
- Close out the game and turn debug mode back off, and you shouldn't need to adjust NVGs any more other than with a quick press of the nightvision keybind when you enter bright or dark areas.
- Profit
Intent:
I want to create NVGs for Stalker that mirror real-life NVGs, without overdoing it. Likewise, I also want these NVGs to be highly configurable, to allow users to edit them without having to dig through files to change lines of code. To achieve this, I created this shader-based NVG effect to fill what I saw as a missing piece of the Stalker experience.
v1.1.1 Chagelog:
- Fixed small chance of NVG's enabling before RegisterScriptCallback completed, causing the NVGs to get stuck in the "up" position, thanks to Lenny for coming across this
v1.1 Changelog:
- Now uses renamed folder structure from Mr Minotaur for better compatibility with MO2 and future updates.
- Added NVG turn-on animations
- Added NVG shader animations
- Now requires shader_param_7, so its 100% not compatible with Enhanced Shaders Color Grading full shader controls, only the simple controls (or no controls)
- Added controls for radius and vertical positioning of NVGS (for animation / scope compatibility)
- Improved compatibility with Shader Based 2d Scopes (alternate sights still need fixing)
- Improve performance potentially by unregistering unused callbacks when NVGs are disabled
- Added additional checks to prevent issues when turning on / off NVGs while ADS and other actions
- Fixed issue with glossy SSR patch
- Fixed binocular compatibility
- Added sound to brightness adjustment action
v1.0.1 Changelog:
- Added compatibility option for Shader Based 2d Scopes into MCM menu
v1.0 Changelog:
- Complete rewrite, added MCM Support
- Separated image / lightmap /albedo as inputs to rendering
- Updated comments in night_vision.h for advanced user-adjustable settings
- Added separate sky adjustment to night_vision.h
- Glitch effect from blowouts added
- Auto-turn off NVG when PDA opened functionality (MCM configurable)
- Prevent NVG's from enabling when ADS (MCM configurable)
- Compatibility with Glossy SSR / Enhanced shaders
- Russian localization
- Ability to set the number of tubes in each generation (MCM configurable)
- Probably a lot more that I forgot
Previous Changelog:
- v0.9 - complete rewrite, introduces tons of new bugs, but improves performance/adjustability
- v0.85 - updated for RC19 compatibility - patches may be out of date
- v0.84 - updated all compatibility patches for Feel_Fried's animations
- v0.83 - version update for the people who downloaded .82 before I ninja-updated an error
- v0.82 - added compatibility patch for Nav's Definitive Masks
- v0.81 - added two new configurations, brighter and brighter+arcade
- v0.8 - fixed distortion, improved effects, implemented new features, uploaded to MODDB
This comment is currently awaiting admin approval, join now to view.
my NVG effect is stuck on my screen, already deleted shader cache by hand and disabling the mod with the cache clear crashes the game
it plays the animation for turning it on but it just restarts the effect, it doesn't go anywhere
DX9 doesn't have this issue
DOES ANYONE KNOW AN NVG THAT WORKS? THIS ONE IS BROKEN IT DOESN'T WORK, OBSOLETE BY 2024, IT FEELS EXPIRED WE NEED A NEW NVG
My NVG binding is default, but when I press b to lower/raise my weapon, it makes the nvg on/off sound as well, without actually changing anything. Even if I dont have nvgs equiped itll make the noise. Ive tried changing keybinds and everything but it still just makes the sound.