Gaussian Blur / Bloom / Unsharpmask

More
6 years 9 months ago #41 by Ioxa
Replied by Ioxa 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.


Thats pretty much how I was thinking of doing it, kind of just follow the LumaSharpen shader and use the sample weights and offsets from the gaussian shader for the blur passes. But LumaSharpen has a wrap pass now, not sure what it does or how it works, but I'm guessing the custom shader would need one if I were going to use it for the gaussian shader.

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

More
6 years 9 months ago #42 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
I don't know how many people are using this but I figured I would upload the versions I've been using recently.

Myself and some others were getting crashes in some games and I think I found the solution. I updated GAUSS.fx, this seemed to eliminate some of the crashes but not all. So I edited a couple different versions, one for SweetFX and one for MasterEffect Reborn. I haven't had any issues while using those files. I haven't tested them with all my games so there may still be some issues I haven't run into yet.

Also added a Custom.h file for SweetFX. It is still a work in progress but the blur and sharpen should work correctly.

I updated the OP with the new files, changed the install instructions, and listed a few new settings options I added.

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

More
6 years 9 months ago #43 by SiriusHours
Replied by SiriusHours on topic Gaussian Blur / Bloom / Unsharpmask
Solid work Loxa, definitely gonna go for a rip with this on.

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

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

Solid work Loxa, definitely gonna go for a rip with this on.


Let me know if you have any issues or recommendations!

EDIT: I made a mistake earlier and uploaded some incomplete files. If anyone happened to download any of them there may be a few problems. I fixed the issues and reuploaded everything.
Last edit: 6 years 9 months ago by Ioxa.

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

More
6 years 9 months ago #45 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
I get compilation failed when using the sweetfx version of gaussfx. I get a yellow message when using custom (overwrites existing custom file), and I get a crash when using the gauss.fx. Trying to use it with PCSX2 again. Before you updated, the gauss.fx was working. But it caused crashes on emulators when going in to window mode from a fullscreen mode.
The following user(s) said Thank You: Ioxa

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

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

I get compilation failed when using the sweetfx version of gaussfx. I get a yellow message when using custom (overwrites existing custom file), and I get a crash when using the gauss.fx. Trying to use it with PCSX2 again. Before you updated, the gauss.fx was working. But it caused crashes on emulators when going in to window mode from a fullscreen mode.


Thanks for letting me know. I think I know what the error is from in the custom.h file, it should still work though. I'll test the others to see if I can figure out the problems.

EDIT: Just tested everything. The SweetFX and ME versions both worked fine on my end. Maybe redownload the files in case you grabbed them before I caught my mistakes. Also double check the install instructions, to be safe try putting the #include line at the very bottom of the file. And if you have the custom file in SweetFX make sure you set USE_CUSTOM to 0 because it will redefine some stuff (I should probably change the definitions in the custom so that doesn't happen).

For GAUSS.fx, it loaded up but crashed when going from windowed to fullscreen, same problem you had with the previous version. It worked fine when I renamed it to ReShade.fx so my guess is that crash has something to do with chaining the files, which the SweetFX and ME versions should fix.

If you still get the error with the SweetFX version let me know what it says.
Last edit: 6 years 9 months ago by Ioxa.

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

More
6 years 9 months ago - 6 years 9 months ago #47 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
Ah okay. Put it by the wrong cartoon word,

The effect doesn't look like the release before it. There are alot of options now. Anyway you could reupload so that it looks the same as it once did?

Or if you could make an alternate version and use the version you had before and just fix the window to full thing.


How it use to look:
File Attachment:


How it looks now even after using the same settings from the one before:
File Attachment:


This is without it:
File Attachment:
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 - 6 years 9 months ago #48 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Ah okay. Put it by the wrong cartoon word,

The effect doesn't look like the release before it. There are alot of options now. Anyway you could reupload so that it looks the same as it once did?

Or if you could make an alternate version and use the version you had before and just fix the window to full thing.


How it use to look:
File Attachment:


How it looks now even after using the same settings from the one before:
File Attachment:


This is without it:
File Attachment:


Hmm... What settings were you using before and what settings are you using now? It could be something with the brightpass filter or maybe something due to the changes I made in the passes.
Last edit: 6 years 9 months ago by Ioxa.

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

More
6 years 9 months ago - 6 years 9 months ago #49 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
I was using the default settings that you had in the download for the previous version.

I changed this version's settings to mimic the old version (left new options untouched).

*the settings for the 3 versions you have up now are configured differently*
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 #50 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

I was using the default settings that you had in the download for the previous version.

I changed this version's settings to mimic the old version (left new options untouched).

*the settings for the 3 versions you have up now are configured differently*


Try this, GaussEffect = 3, Gauss Strength = 0.33, GaussBloomWarmth = 0, USE_BP = 1, BloomIntensity = 3.00, addBloom = 0, and either USE_SlantGauss = 1 or GaussQuality = 1. You could try messing with the bloom width but I wouldn't go above 2.00 cuz it might get choppy.

But you should try experimenting with the different settings, definitely don't depend on my settings. If you set GaussEffect to 5 you can see the image that the effects are being applied to, that image then gets blended into the original image. GaussStrength determines how much gets blended into the original image.

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

More
6 years 9 months ago #51 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
//Alternate Brightpass filter settings. Only works when USE_BP2 is set to 1.
//Makes the bright stuff brighter.
#define LuminanceBP 0.0800f //default 0.0800f Lower #'s = brighter
//Makes entire image brighter.
#define GrayBP 0.1800f //default 0.1800f Higher #'s = brighter.
//Cutoff for what is considered bright.
#define WhiteCutOffBP 0.800f //default 0.800f

I changed this to this. And the other similar code block too. It says it doesn't do anything if bp2 isnt 1 but it does. I get the same color as pic 1 nowl But it doesn't glow exactly like the 1st pic.
I tried you're recommendation just now and it was a little on the too bright side. In game words are kinda unreadable and everything is almost white.

If you don't have the original, if i send it to you, could you just fix the crash thing only and send it back? It's just way too many options now and I would just like the way it was without having to spend alot of time on it. I prefer to spend time on actual gaming :)

Pwetty Pweeease xD j/k

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

More
6 years 9 months ago - 6 years 9 months ago #52 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
It shouldn't do anything unless that is set to one, I'll have to go back and see if I messed something up.

Haha, yeah, I'll upload one for you. I still have a copy of the old one. I'll probably upload it late tomorrow or sometime on Monday.

EDIT: I had a little extra time tonight so put together that file for you. I tested it with PCSX2 real quick and didn't have any problems. Same install instructions as the GAUSS4SweetFX file, you just have to rename it. Or you can keep the file name, it just has to match whatever file name is in the quotes in the #include line.

download
Last edit: 6 years 9 months ago by Ioxa.
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 #53 by Sh1nRa358
Replied by Sh1nRa358 on topic Gaussian Blur / Bloom / Unsharpmask
Had to change a couple settings and now it's perfect. Just like the first image now ;)
Perfect, no crashes. Thanks again, I appreciate it. One of the best shaders ever~

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

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

Had to change a couple settings and now it's perfect. Just like the first image now ;)
Perfect, no crashes. Thanks again, I appreciate it. One of the best shaders ever~


Cool, glad that worked for you. I think I figured out why the two looked so different, for some reason the horizontal blur pass isn't working. I'll probably go back through and make everything more like the one asked for, everything seemed to be working in that one.

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

More
6 years 9 months ago - 6 years 9 months ago #55 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
Came up with a contrast enhancement effect using multiple blur passes. I wanted to do some sharpening without creating too many jaggies, I think this works pretty well. Some comparison pics. EDIT: Messed up the pics, here are the rest.

BF4withContrast

BF4original

BioshockWithContrast

BioshockOriginal

BioshockWithContrast

BioshockOriginal

Here is the file if anyone wants to try it out.
GAUSS4MEwithContrastEnhancement

It has to be chained into MasterEffect to work, thats just the way I was testing it. Instructions for chaining are on the first page. File will have to be renamed or make the adjustment in the install instructions. Personally I think it looks best running it before ME and then putting ME's bloom on top of it.
Last edit: 6 years 9 months ago by Ioxa.

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

More
6 years 9 months ago #56 by Wicked Sick
Replied by Wicked Sick on topic Gaussian Blur / Bloom / Unsharpmask
Will you make it for sfx only too?

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

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

Will you make it for sfx only too?


Yeah, here you go.

Gauss4SweetFXwithContrastEnhancement
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 #58 by Wicked Sick
Replied by Wicked Sick on topic Gaussian Blur / Bloom / Unsharpmask
Hey, thank you ^^

Do you know if there's way to use ReShade in BF while playing online without being kicked because of it?

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

More
6 years 9 months ago #59 by Ioxa
Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
No problem!

I haven't had any problems using it online. You should be good unless something has changed in the last few days.

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

More
6 years 9 months ago #60 by Wicked Sick
Replied by Wicked Sick on topic Gaussian Blur / Bloom / Unsharpmask
Ah. I was playing BF3 another day and I got kicked by punk buster something saying that I had "Multiple injections something". If I recall well, I saw Crosaire writing about this.

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