Improves the feeling of 2D scopes by introducing a magnification shader and some scope based effects, without the performance impact of PiP.
This is an engine mod. It will not be compatible with any other engine mod. You are also installing an .exe which means you are entrusting me to not put a bitcoin miner on your computer.
v1.2: The current version of DLTX [12th August 2021] is now built-in to the mod, thanks to MerelyMezz excellent instructions, so you should be able to let this overwrite your .exe files and your DLTX mods should continue working.
This mod is only compatible with DX10+. The solution to DX9 support is not immediately obvious to me so it may take some more time than I expected, but I am trying.
For Boomsticks and Sharpsticks compatibility - kemelvorkorp's patch is now included in the download files.
This mod attempts to improve the experience of 2D scopes by adding a simple shader that adds magnification and some effects like parallax fog and chromatic aberration. This is not PiP, it does not require the game to render the scene twice. Therefore, it does not have a severe performance impact, nor does it require you to make custom config files, textures, or modify weapon geometry. It can also darken the area outside of the scope and add blur. The mod adds a bunch of console commands that you can use to tweak the settings:
The scope_factor setting changes the amount of magnification inside the scope compared to the outside. It works by just taking the existing frame and scaling it up inside the scope. Due to this, there is a tradeoff between higher magnifications and image quality. The mod will automatically adjust your weapons scope_zoom_factor to compensate, so you're not "adding" any magnification on top of the scopes magnification, just adjusting the difference in FOV outside and inside the scope.
If you don't like the effect you can set scope_factor to 1. This removes all magnification. A value of 0.75 will result in a 1.33x magnification and very little noticeable drop in quality. A value of 0.5 will result in a magnification of 2x, and 0.25 a magnification of 4x with a very noticeable drop in image quality.
Here is an image showing different settings, notice the area outside of the scope on the left image is almost entirely zoomed out but the zoom within the scope remains the same.
As a side note: If you have a beefy computer and are fond of the PiP effect, and your GPU is capable of dynamic resolution, you can render the game at a higher than native resolution to reduce the drop in quality. For example, here is a screenshot I took while rendering the game at 4x native with Nvidia DSR at a scope factor of 0.25
Notice the image on the right is much higher quality. This also has the bonus of effect of making your game look nicer.
You can also change the look and feel of the parallax fog with a couple commands:
Choose either the DLTX or non-DLTX version and paste the gamedata and bin folders into your anomaly installation and allow it to overwrite the base .exe files. If you use BaS, install the BaS patch on top and let it overwrite. Ignore the source folder.
I have only tested this mod with the vanilla weapons, but it should be pretty easy making other scopes work with this mod. To do so, you need to define the scope's texture and radius in scopeRadii.script. To figure out the right radius for your scope, open the game and zoom in with it, and then use the scope_radius console command to figure out what the correct radius is. Since it's a separate script file, you can easily redistribute your modified version with your scope retextures/weapon packs.
v1.3: I have now included a .diff patch file in the download files in the source folder. You can use the git "diff apply <filename.diff>" command to apply the changes to your repository of Anomaly. It does not include DLTX, but DLTX can be implemented using the same method.
v1.1: Removed unused shader definition which may be causing crashes
v1.2: Implemented DLTX
v1.3: Implemented DX10 support and released source, and included non-DLTX version in download files
Average
9.9124 votes submitted.
Neat
Incredible mod.
Would it be possible to make it compatible with DLTX since it also replace the game .exe ?
Yeah shucks. This would be great.
I see that a lot of mods are dependent on it, so I'll make it a priority to merge with DLTX. The solution is not immediately obvious to me, but I will try to get in contact with the author.
EDIT: Done!
BaS?
Офигенно это чувак! ты красава! с Bas'ом совместимо?
Yes, there is a BaS patch by kemelvorkorp
Cdn.discordapp.com
Well, well, now this is interesting. As questioned above, if theres some compatibility with DLTX and Boomsticks scopes, etc. Im definitely trying. WIll keep an eye on it meanwhile.
This is heckin' neato.
I did a patch for BaS support. It's not perfect but it works. It took me some time to try each scope and be as unobtrusive as possible while still seeing the fog moving around.
If there is a missing scope or an issue, let me know.
As a bonus, I added the effect for the binoculars, but you won't see the surrounding. You would only be able to see the fog moving around as you move the camera, the effect isn't intrusive.
The mod's author can add it in the download files !
-Link deleted : Added in the description, go get it !-
You have to replace directly the file in gamedata, do not use a mod manager, it won't work.
Thank you for the effort! I have added the link to the OP
I'll be aiting untill you make a DX9 compatible version. I've been looking for something like this for at least a month now.
This looks incredible! I've seen the concept vid sometime ago and tought it old take a long, long time to be out lol
I'm waiting some more votes to download this as I'm kinda paranoid about .exes, but congrats on such a clever solution for better scopes without the performance hit ;D
Edit: Go for it. Absolutely amazing, even more now with DLTX support!!
You can go for it. The mod is good and nothing suspicious happened to my computer~
This is great. The outer scope darken is much needed for 2D scope immersion!
Would a DX10 version be possible????? Would be a nice option as it offers better performance for some users.
I will make a DX10 version in the near future but I want to make sure everything works on DX11 first, including eventually adding support for other large engine modifications like DLTX
Thanks 😉👍
DLTX please :/ ?
The strange thing is that it's not changeable through the console for me
What are you trying to change?
Looking very very neat.
How much of a performance overhead is to be expected on part of the bitcoin miner?
A little less than PiP :^)
I respect how you understand your niche and strengths in the competitive market of anomaly scope mods ;)
Sounds incredible and if it can play along beef NVGs, the reflections shader and few other indispensables, I don’t see how this would not become the next vanilla incorporated feature in Anomaly, fantastic work.
Incompatible with other shader mods? I have Beef NVG, Enhanced Shaders and Glossy SSR shader mods installed, after installing this one and cleaning shader cache I get this error on startup:
! c:/games/anomaly-1.5.1.2/bin/..\appdata\shaders_cache\r4\fakescope.ps\1536111100110000000100100000110333113010000000
! error: common_functions.h(29,6): warning X3205: conversion from larger type to smaller, possible loss of data
common_functions.h(40,8): warning X3205: conversion from larger type to smaller, possible loss of data
common_functions.h(85,2): warning X3206: implicit truncation of vector type
common_functions.h(90,49): warning X3206: implicit truncation of vector type
common_functions.h(122,2): warning X3206: implicit truncation of vector type
(5,16): error X3003: redefinition of 'shader_param_4'
Uh oh. It should definitely be compatible with Beef's NVG at-least, but I'm not sure about the others. It seems I've left an unused definition in the shader `uniform float4 shader_param_4;` which may be causing the problem, though I'm not sure why that would cause a crash. I'll look into it.
It is compatible, just delete the night vision file and this is it.
BTW, how many bitcoins u have already got? 🤣
at this rate I won't even need a donate button x)
Well I installed Beef NVG, Enhanced Shaders and Glossy SSR and I couldn't reproduce the crash. If you want, you can try deleting the line `uniform float4 shader_param_4;` in the .ps file yourself and see if it works. I'll push an update soon that does that since it's unused anyway.
Thanks!
what's the load order?
YES! I was on your YouTube channel a few days days ago looking at this, I thought it would be months until I got to play with. Thank you so much!
Just got done implementing DLTX. The mod author did a very good job of making it intuitive, so it was much easier than I expected. Everything seems to be working.
Absolutely incredible, thank you !
Thank you for the update !
That was quick. Bravo, and I guess a shoutout to the DLTX author!
Is default setting (scope_factor 0.66) the most recommended preset? Or what's your most preferred setting? Great work btw, can't believe it that you finally released the work, many thanks :)
The default settings are my preferred settings yes. Personally the lowest I will go is 0.5, anything lower and it can become difficult to acquire targets further away. Glad you like it!
Gonna wait for dx9 compatability
OMG THIS IS PERFECT! I've been lurking for years modding stalker but i only recently started making my own. I plan on finishing it sometime this year and huge part of it was just fixing the immersion breaking aspects of vanilla. I reactivated and replaced all the 2D scopes because the reality is that they are less immersion breaking than the alternative, but it felt like something was missing. PIP scopes is very overrated (great and ambitious mod, absurd tradeoffs) but i felt like something lightweight that modernizes 2D scopes would make using them objectively more appealing than PIP. Here it is. Excellent work
Hey! cool mod, waited a long time!
But there is a problem - the scope_radius, which the mod sets manually, does not work correctly. It puts 4.0 when 3.5 looks great!
By the way, I have a 21x9 monitor, Maybe this is a problem?
Thanks!
Google translator
Interesting. I have not tested it on 21x9 so it could be an issue. You can change the scope values in scopeRadii.script to be bigger if you need
i cant find the sig sniper in the scope radii script?
very cool! I'm glad one of these concepts finally released.
EDIT:
QUICK AND DIRTY TAZ 3.0 COMPATIBILITY PATCH - Remember to put this patch higher priority than the main Shader Based 2D Scopes mod.
Www13.zippyshare.com
Could you reupload? Link is dead
Link is dead Sadge
Effects are great! but may be missing for the 4x acog? Thanks
Probably deliberate since it is 3D.
hey, tested it, i like it, thank you for your work.
The patch for BaS won't work, the folder in it in gamedata folder is called "script" instead of "scripts" and it won't overwrite files from the mod, keep in mind about that and rename the folder in patch to "scripts"
Whoops, fixed
Oh yeah, that one's on me. CrookR fixed it and provided a link in the mod description. I'll edit my comment to redirect to it.