High Pass Sharpening / Contrast Enhancement
- Ioxa
-
Topic Author
Nice man! Looks good! It's cool seeing all the different ways you guys are using this.BrandonHortman wrote: I used High Pass Sharpening in my Dragon Age Inquisition Preset here
www.nexusmods.com/dragonageinquisition/mods/438/ ?
I credited to you
Great work
Please Log in or Create an account to join the conversation.
- Quentin-Tarantino
-

Please Log in or Create an account to join the conversation.
- Scorpio82CO
-
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
32 samplers, I've seen this mentioned before. It could be some issue with opengl, the other time I saw it mentioned it was with an opengl game, or it could just be the 2 samplers used in this shader put you over the edge. Try using the AO shader and the sharpening shader separately, if they both work on their own then your only option is to start disabling effects until you are under the 32 sampler limit.Scorpio82CO wrote: Hi loxa.. I have to said that is the shader in conjuntion with the last reshade+framework..it says that something about can handle the 32 passes..i didn’t read very well, but this shader and AO shader i can't make it work in the ogl game.really i don't know if an another reshade version can work..thanks for listen..sorry for my ugly english
Please Log in or Create an account to join the conversation.
- BeTa
-
is there a way to add this to sweetfx 2?
im using reshade/sweetfx2 from here:
sfx.thelazy.net/games/preset/3434/
(v2.0 Preview 8 by CeeJay.dk | ReShade 0.16.0)
with your tutorial i didnt get far, sadly. since this is a diff config im using, but would it be possible to get it to work and use it with my version instead of sweetFX´s sharpening???
thx
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
I probably should have mentioned that this only works with ReShade + Framework, sorry about that.BeTa wrote: hy,
is there a way to add this to sweetfx 2?
im using reshade/sweetfx2 from here:
sfx.thelazy.net/games/preset/3434/
(v2.0 Preview 8 by CeeJay.dk | ReShade 0.16.0)
with your tutorial i didnt get far, sadly. since this is a diff config im using, but would it be possible to get it to work and use it with my version instead of sweetFX´s sharpening???
thx
I'm probably going to update this today, I'll see if I can get a version for ReShade + SweetFX working and I'll post it along with the update.
Please Log in or Create an account to join the conversation.
- BeTa
-
the thing i asked is, i wanted to maintain the sweetfx settings also, just adding teh HP sharpening from you...
Anyway, thanks for looking into it, ill whait

greetings and a nice evening to you...
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
Download for ReShade + Framework Version
Download for ReShade + SweetFX Version
Changed in newest version.
-Added separate settings for contrast enhancement.
-Contrast enhancement and sharpening can be used together.
-Adjusted some of the blend modes to work better with contrast enhancement and added a couple others.
-Scaled down the textures used for contrast enhancement, this gave a huge performance boost when using quality settings above 0.
-Added some performance and misc settings to turn on/off texture scaling and change some other things.
-Removed the edge protection, its not working the way I would like it to.
-Probably some others that I'm forgetting right now.
Some pictures showing the difference between using the effects individually and together. The settings I used were pretty mild, if I get a chance I'll take some new ones with stronger settings so it's easier to spot the changes. The best way to view these would be to open them in individual tabs so you quickly switch between them.
Please Log in or Create an account to join the conversation.
- conan2k
-
Ioxa wrote: -Added separate settings for contrast enhancement.
-Contrast enhancement and sharpening can be used together.
Could you please elaborate on this a little bit more? Is this "local contrast enhancement" effect?
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
Yeah, it's basically local contrast enhancement. Or you could think of it as macro sharpening. By blurring the image with a larger radius the small details start to disappear and the larger ones start to stand out. Here are a couple articles I pulled up real quick that kind of explain it.conan2k wrote:
Ioxa wrote: -Added separate settings for contrast enhancement.
-Contrast enhancement and sharpening can be used together.
Could you please elaborate on this a little bit more? Is this "local contrast enhancement" effect?
dptnt.com/2007/11/contrast-enhancement-in-nikon-capture-nx/ scroll down to method 3.
strobist.blogspot.com/2010/02/after-ligh...post-production.html
Please Log in or Create an account to join the conversation.
- Ganossa
-


Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
I'm still kind of working on it, although I don't expect it to change too much from where it is now. Would it be possible to keep the settings.cfg separate from the rest of the custom settings for now? I just don't want to force people to overwrite any existing settings if I happen to change the settings for this.LuciferHawk wrote: Hey Loxa
Do you want me to add it to the framework again for the upcoming release?
Please Log in or Create an account to join the conversation.
- Ganossa
-


Please Log in or Create an account to join the conversation.
- v00d00m4n
-
Ioxa wrote: While looking for ways to reduce the "halo" or "ringing" caused by unsharp masking I came across some information on a different method of sharpening called high pass sharpening. After a couple visits to Wikipedia I had a method for creating a high-pass filter and some equations for different blend modes, put it all together and this is the result. It is still very much a work in progress but in the limited testing I've done it seems to be working. I know very little about coding, so if you spot any mistakes or have any recommendations to help me improve this please let me know.
Updated 05/01
Download for ReShade + Framework Version
Install Instructions for ReShade + Framework
1. Copy the ReShade folder to the same folder that ReShade was installed to and merge it with the existing folder.
2. Open ReShade.fx and add the line "#include EFFECT(CustomFX, Sharp)" in the Effect Ordering section. (Placing it at the very bottom of the file will cause crashes)
3. Find HighPassSharp_Settings.cfg in the ReShade folder and open it to adjust the settings.
Download for ReShade + SweetFX Version
Install Instructions for ReShade + SweetFX
1. Copy ReShade.fx and the SweetFX folder to the same folder that ReShade was installed to.
Overwrite the existing ReShade.fx and merge the SweetFX folder with the existing SweetFX folder.
2. Open the SweetFX folder and find HighPass_settings.h.
Open the file and scroll down to the line that says "#define Compatibility".
Set it to 1 to use in combination with SweetFX or 2 to use in combination with MasterEffect.
*If using with MasterEffect rename MasterEffects ReShade.fx file to ReShadeME.fx.
Changed in newest version.
-Added separate settings for contrast enhancement.
-Contrast enhancement and sharpening can be used together.
-Adjusted some of the blend modes to work better with contrast enhancement and added a couple others.
-Scaled down the textures used for contrast enhancement, this gave a huge performance boost when using quality settings above 0.
-Added some performance and misc settings to turn on/off texture scaling and change some other things.
-Removed the edge protection, its not working the way I would like it to.
Some pictures showing how high pass sharpening works and the difference between a few of the blend modes. Keep in mind these pictures were taken while using very high settings to make the differences easily noticeable.
whats the point of this shader if final image looks way more blury than original? It supposed to make it sharper, isn't it?
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
You caught me! I was trying pull a fast one, almost got away with it!v00d00m4n wrote:
Warning: Spoiler!Ioxa wrote: While looking for ways to reduce the "halo" or "ringing" caused by unsharp masking I came across some information on a different method of sharpening called high pass sharpening. After a couple visits to Wikipedia I had a method for creating a high-pass filter and some equations for different blend modes, put it all together and this is the result. It is still very much a work in progress but in the limited testing I've done it seems to be working. I know very little about coding, so if you spot any mistakes or have any recommendations to help me improve this please let me know.
Updated 05/01
Download for ReShade + Framework Version
Install Instructions for ReShade + Framework
1. Copy the ReShade folder to the same folder that ReShade was installed to and merge it with the existing folder.
2. Open ReShade.fx and add the line "#include EFFECT(CustomFX, Sharp)" in the Effect Ordering section. (Placing it at the very bottom of the file will cause crashes)
3. Find HighPassSharp_Settings.cfg in the ReShade folder and open it to adjust the settings.
Download for ReShade + SweetFX Version
Install Instructions for ReShade + SweetFX
1. Copy ReShade.fx and the SweetFX folder to the same folder that ReShade was installed to.
Overwrite the existing ReShade.fx and merge the SweetFX folder with the existing SweetFX folder.
2. Open the SweetFX folder and find HighPass_settings.h.
Open the file and scroll down to the line that says "#define Compatibility".
Set it to 1 to use in combination with SweetFX or 2 to use in combination with MasterEffect.
*If using with MasterEffect rename MasterEffects ReShade.fx file to ReShadeME.fx.
Changed in newest version.
-Added separate settings for contrast enhancement.
-Contrast enhancement and sharpening can be used together.
-Adjusted some of the blend modes to work better with contrast enhancement and added a couple others.
-Scaled down the textures used for contrast enhancement, this gave a huge performance boost when using quality settings above 0.
-Added some performance and misc settings to turn on/off texture scaling and change some other things.
-Removed the edge protection, its not working the way I would like it to.
Some pictures showing how high pass sharpening works and the difference between a few of the blend modes. Keep in mind these pictures were taken while using very high settings to make the differences easily noticeable.
whats the point of this shader if final image looks way more blury than original? It supposed to make it sharper, isn't it?
Just kidding. Above the picture it says "Softening using an inverted High Pass filter" (at least I think it's above it, maybe I formatted it wrong). The high pass filter sharpens, if you invert it it does the opposite. It was an option that was easy to add so I added it. That picture is just to show what it looks like.
Please Log in or Create an account to join the conversation.
- Martigen
-
This looks really good. I like the effect combined. Sharpening is always better is subtle and not over the top. Have to try this outIoxa wrote: Some pictures showing the difference between using the effects individually and together. The settings I used were pretty mild, if I get a chance I'll take some new ones with stronger settings so it's easier to spot the changes. The best way to view these would be to open them in individual tabs so you quickly switch between them.

What settings did you use for those screenshots, or are they the defaults in the package?
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
I agree, subtlety is key when it comes to sharpening. I just wanted to use some higher settings for the screen shots so it was easy to see the difference between the two.Martigen wrote: This looks really good. I like the effect combined. Sharpening is always better is subtle and not over the top. Have to try this out
What settings did you use for those screenshots, or are they the defaults in the package?
I'm pretty sure those were taken with the same settings I uploaded it with. If anything I may have changed the blend mode for the contrast enhancement, I either used 2 or 7.
Please Log in or Create an account to join the conversation.
- BeTa
-
didnt expect such an fast solution

awesome work mate.. gonna test it later on with gta5.
Please Log in or Create an account to join the conversation.
- Ioxa
-
Topic Author
I already had the framework there from my port of Boulotaur2024's gaussian shader, I just had to copy everything over and change a couple lines. I didn't test it nearly as much as I should have though so let me know if you run into any problems.BeTa wrote: wow, Ioxa your teh man, man....
didnt expect such an fast solution
awesome work mate.. gonna test it later on with gta5.
Please Log in or Create an account to join the conversation.
- F D B
-
Please Log in or Create an account to join the conversation.