Gaussian Blur / Bloom / Unsharpmask

More
6 years 10 months ago #21 by Wicked Sick
Replied by Wicked Sick on topic Gaussian Blur / Bloom / Unsharpmask
Thank you Crosire and Ioxa. I am using the Pause key "0x13" to toggle the Gauss effect ^^. I am liking it this way, to use one key to toggle SFX and the other for the extra files.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #22 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

OpenGL game + you are on NVIDIA, right? Cause then you ran into the NVIDIA driver bug I'm wrapping my head round for a while now already, switches the red and blue color channel under OpenGL in certain circumstances.[/quote]

Yeah, I'm on NVIDIA, but the game is D3D11. ReShade + SweetFX together work just fine, it's just adding GAUSS that throws everything off. Considering I don't really know what I'm doing, I'm sure the problem is caused by something I've done. I think I'll step away from it for a bit and come back to it when I'm less tired.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #23 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Thank you Crosire and Ioxa. I am using the Pause key "0x13" to toggle the Gauss effect ^^. I am liking it this way, to use one key to toggle SFX and the other for the extra files.

I added that toggle key in on mine too, nice to be able to toggle it on and off real quick.

Kurtferro! I didn't see a way to PM you so hopefully you're still checking in here once in awhile. I got it working with Neverwinter, at least on my end. I'll upload the file here for you to try out. I still have a game it's not working with but I'm starting to think maybe that game got corrupted somehow, if thats even possible. Let me know if this works for you!

Download

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago - 6 years 10 months ago #24 by kurtferro
Replied by kurtferro on topic Gaussian Blur / Bloom / Unsharpmask

Thank you Crosire and Ioxa. I am using the Pause key "0x13" to toggle the Gauss effect ^^. I am liking it this way, to use one key to toggle SFX and the other for the extra files.

I added that toggle key in on mine too, nice to be able to toggle it on and off real quick.

Kurtferro! I didn't see a way to PM you so hopefully you're still checking in here once in awhile. I got it working with Neverwinter, at least on my end. I'll upload the file here for you to try out. I still have a game it's not working with but I'm starting to think maybe that game got corrupted somehow, if thats even possible. Let me know if this works for you!

Download


I try now!

edit: crash again^^ with red and black screen before freeze
Last edit: 6 years 10 months ago by kurtferro.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #25 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
Sounds like the same problem I'm having with a different game, no idea what is causing it.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #26 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
Wow, this looks even better than I thought. Is it possible to add texture filtering to this?

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #27 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Wow, this looks even better than I thought. Is it possible to add texture filtering to this?

Like aniosotropic filtering? I think it is possible but I don't know how to do it. This was all written by Boulotaur2024 and I just changed some things to get it working with ReShade. I'll do some searching and see if I can figure it out, no promises though.
The following user(s) said Thank You: Sh1nRa358

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #28 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
Hmm, I know Aniso does that to text and angles but I was thinking along the lines of the option that actually says 'texture filtering' (which also has aniso separately from the option) like in games such as Street Fighter 4, PPSSPP, and PCSX2, etc. Something to smooth out the textures only without putting a layer on the whole screen that makes low textures look so nice and smooth.
Last edit: 6 years 9 months ago by Sh1nRa358.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #29 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Hmm, I know Aniso does that to text and angles but I was thinking along the lines of the option that actually says 'texture filtering' (which also has aniso separately from the option) like in games such as Street Fighter 4, PPSSPP, and PCSX2, etc. Something to smooth out the textures only without putting a layer on the whole screen that makes low textures look so nice and smooth.

It may be possible to use the depth sampler to apply varying levels of blur to objects based on their distance from the camera but I'm only guessing as I don't know enough about how it works to say for sure.

You may be able to achieve the look you're going for by adjusting the LOD bias for your video card. Positive LOD will make the textures blurry and negative will make them sharp.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #30 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
I always wondered what that meant.
I have 'texture filtering -negative LOD bias': Allow/Clamp.
Which one means smooth and with one means sharp?

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #31 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

I always wondered what that meant.
I have 'texture filtering -negative LOD bias': Allow/Clamp.
Which one means smooth and with one means sharp?

I'm guessing you have an Nvidia card. You need to use the program Nvidia Inspector to change the actual LOD bias. Change Antialiasing - Transparency Supersampling to AA_MODE_REPLAY_MODE_ALL. After that you can change Texture filtering - LOD Bias (DX) to whatever you'd like, negative values for sharp and positive for blurry. You may want to set it to something extreme just to make sure it's working then adjust from there.

If you have an AMD card I think you can use Radeon Pro to adjust the LOD bias but it's been years since I've owned an AMD card so not sure if that still works.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #32 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
Oh okay. Yeah I have a nvidia card.
The following user(s) said Thank You: robgrab

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #33 by Yazame
Replied by Yazame on topic Gaussian Blur / Bloom / Unsharpmask
This is so sexy, yet it's crashing with Warframe.

Running the game on max graphics, DX11 and 64-bit.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #34 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

This is so sexy, yet it's crashing with Warframe.

Running the game on max graphics, DX11 and 64-bit.

I've had a the same problem with other games, not really sure what is causing it. I've noticed some games will crash when I enable SMAA or FXAA but run fine again when I disable them. Some games will have issues if I've used SweetFX then switch to Master Effect or vice versa, this problem remains even after removing all ReShade related files and reinstalling them. In the games that I've had issues with I can rename gauss.fx to ReShade.fx and it works fine, so it seems its just a problem of different files not getting along.

It looks like future versions of ReShade will be more modular and have a folder for custom .fx files, hopefully that will resolve these kinds of issues. Until then try to disable SMAA or FXAA if you're using them. I also have a slightly updated version than the one in the OP that you can try, I'll upload it for you later tonight.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #35 by Yazame
Replied by Yazame on topic Gaussian Blur / Bloom / Unsharpmask

I've had a the same problem with other games, not really sure what is causing it. I've noticed some games will crash when I enable SMAA or FXAA but run fine again when I disable them. Some games will have issues if I've used SweetFX then switch to Master Effect or vice versa, this problem remains even after removing all ReShade related files and reinstalling them. In the games that I've had issues with I can rename gauss.fx to ReShade.fx and it works fine, so it seems its just a problem of different files not getting along.

It looks like future versions of ReShade will be more modular and have a folder for custom .fx files, hopefully that will resolve these kinds of issues. Until then try to disable SMAA or FXAA if you're using them. I also have a slightly updated version than the one in the OP that you can try, I'll upload it for you later tonight.


There is something else here crashing the game. I turn off SMAA (it being the only thing of the two you mentioned) and the game still crashes.
I won't bother much more with it tho. It's just that with old version of SweetFX, Gaussian Blur was one of the settings I had on to work in Warframe along side with Bloom, LiftGammaGain, Vibrance and Curves, but one of their updates changed something in the game and whenever I put old SweetFX's into it, it forces the game into DX9, so I went around on their forums look up on stuff about SweetFX and found out about ReShade and whatnot. I haven't messed much with this yet tho, but I'm also not sure if any other versions of SweetFX work with ReShade.

Either way I'll wait for you to upload the updated version if you so desire, and I've seen what they are trying to do with the future versions of ReShade and it sure looks like it will be some over the top "tool" and I kinda felt hype looking at it 1 day ago.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #36 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

There is something else here crashing the game. I turn off SMAA (it being the only thing of the two you mentioned) and the game still crashes.I won't bother much more with it tho. It's just that with old version of SweetFX, Gaussian Blur was one of the settings I had on to work in Warframe along side with Bloom, LiftGammaGain, Vibrance and Curves, but one of their updates changed something in the game and whenever I put old SweetFX's into it, it forces the game into DX9, so I went around on their forums look up on stuff about SweetFX and found out about ReShade and whatnot. I haven't messed much with this yet tho, but I'm also not sure if any other versions of SweetFX work with ReShade.

Either way I'll wait for you to upload the updated version if you so desire, and I've seen what they are trying to do with the future versions of ReShade and it sure looks like it will be some over the top "tool" and I kinda felt hype looking at it 1 day ago.


Here's that newer version for you to try. Download Just rename the file to GAUSS.fx.
EDIT: Almost forgot, it will throw up some error warnings in yellow but it will still work fine, they're just from an alternate brightpass filter I am trying out.

If this file doesn't work for you and you want to add some blur to your game you can use LumaSharpen in SweetFX with negative sharp_strength values. It's not quite the same but it will make it blurry.
Last edit: 6 years 9 months ago by Ioxa.
The following user(s) said Thank You: Wicked Sick

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #37 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
Yazame, I had a different idea. I just imported a bunch of stuff from the gauss file into SweetFX. I only tested it with Battlefield 4 (which was crashing when trying to use the two together) and it worked fine, even with SMAA on.

SweetFX w/ gauss

It's the version of SweetFX that was bundled with ReShade 0.14.0, it will probably not work with settings files from other versions. This should work much better than trying to chain the two files together.

EDIT: All the settings are in Sweet.fx at the very top. Open that file to adjust anything related to the gaussian stuff.
Last edit: 6 years 9 months ago by Ioxa. Reason: Things
The following user(s) said Thank You: Wicked Sick

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #38 by Yazame
Replied by Yazame on topic Gaussian Blur / Bloom / Unsharpmask
Sweet !
That works well for Warframe too.

On a side note: I was messing with it today for a bit, and I messed up so much with it, that at some point it was working even as a separated file, but then I kept trying out things and it never worked again no matter what I tried to do. The I went to try it out on Dying Light, and it was making the game crash as well, but just like it happen to warframe, I messed so much, that at some point it started working, and as soon as it worked for Dying Light I stop'd messing around with it. I didn't do anything special tho, was just deleting some lines, making the script fail to load, then adding the lines back in place till it worked.

Anyways, since you placed it into Sweet.fx file, that is almost like adding the settings to sweetfx it self. And I dunno if you have tried it yet or not, but in the "sweetfx_settings.txt" there is this line "#define USE_CUSTOM 0 //[0 or 1] Custom : Write your own shader by editing custom.h, and then enable it here.", and placing it that way, should work too(?). (Just to place it as a more organized way, seems out of place)

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #39 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
Nice! Good to hear it worked for you too.

It might work as a custom shader... I added a texture and sampler to SweetFX to get it working this way, I don't think that could be done through a custom shader so I'd have to see if there is a way to do it without those. I would prefer to do it that way if possible though as I'd rather not mess with the stuff in SweetFX.fx. I'll give it a shot and see if I can figure it out but I'm thinking it probably won't work.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #40 by JPulowski
Replied by JPulowski on topic Gaussian Blur / Bloom / Unsharpmask
I was also playing with original Gaussian shader and I wonder if it is possible to run it in a single pass instead of multiple passes. I created this scratch for MPC-HC: pastebin.com/rU34DiFR
Obviously it is incomplete, the problematic part is sampling. I could not find a way to do it as originally intended.
Last edit: 6 years 9 months ago by JPulowski.

Please Log in or Create an account to join the conversation.