Gaussian Blur / Bloom / Unsharpmask

  • TCPIP
More
9 years 3 months ago #7 by TCPIP Replied by TCPIP on topic Gaussian Blur / Bloom / Unsharpmask
It is a working shader, i use it in games. The number of fetches is so high because you need a stronger blur for effects like local contrast, in the gauss shader you do 18 fetches because of the separate horizontal and vertical passes, if you did this in 1 pass it would be 81 so the multipass way should have been faster, but it isn't which is quite strange.

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

  • kurtferro
More
9 years 3 months ago - 9 years 3 months ago #8 by kurtferro Replied by kurtferro on topic Gaussian Blur / Bloom / Unsharpmask
:dry:


i tryed too disabling all effect in sweetfx, but the result does not change

i try with TCPIP code now.

edit: if i paste TCPIP code i get errors in compiling
I do not have the necessary knowledge :angry:

there is some tutorials to understand something?


PS: Neverwinter online is free 2 play
Last edit: 9 years 3 months ago by kurtferro.

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

  • Ioxa
  • Topic Author
More
9 years 3 months ago - 9 years 3 months ago #9 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
I'm downloading Neverwinter right now, I'll see if I can figure out the problem.

Are you getting the same result when using it with other games?

The code that TCPIP posted might work as a custom shader in SweetFX, it won't work as is in a .fx file though.

In the meantime you can try using this one . I fixed the part Crosire pointed out. I've also added an option to use bloom along with blur or sharpening, still a work in progress but it's been working fine for me.

EDIT: Just tried Neverwinter and it crashed just like in your video. No clue what the problem may be but I'll see if I can figure it out.
Last edit: 9 years 3 months ago by Ioxa.
The following user(s) said Thank You: kurtferro

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

  • kurtferro
More
9 years 3 months ago #10 by kurtferro Replied by kurtferro on topic Gaussian Blur / Bloom / Unsharpmask
Ok thanks, tomorrow i will try with Insurgency and Arma3, but if you have the same problem others games are relative.

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

  • K-putt
More
9 years 3 months ago #11 by K-putt Replied by K-putt on topic Gaussian Blur / Bloom / Unsharpmask
This is great! Thanks for working on this. The gaussian shader/s are pretty essential if you ask me.

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

  • TCPIP
More
9 years 3 months ago - 9 years 3 months ago #12 by TCPIP Replied by TCPIP on topic Gaussian Blur / Bloom / Unsharpmask
Here are working files based on lumasharpen.h:
www.mediafire.com/download/c2w7ij1xkfvw252/Shaders.zip
Last edit: 9 years 3 months ago by TCPIP.

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

  • kurtferro
More
9 years 3 months ago #13 by kurtferro Replied by kurtferro on topic Gaussian Blur / Bloom / Unsharpmask
What is the difference from your and CeeJay version?

this is only for blur?

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

  • TCPIP
More
9 years 3 months ago #14 by TCPIP Replied by TCPIP on topic Gaussian Blur / Bloom / Unsharpmask
The difference is in method and the result, CeeJay's version sharpens the image, mine is for local contrast.

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

  • Ioxa
  • Topic Author
More
9 years 3 months ago #15 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

K-putt wrote: This is great! Thanks for working on this. The gaussian shader/s are pretty essential if you ask me.

No problem! And I agree. I particularly like the bloom and hoping to eventually get the sigma, threshold, and exposure working, but I'm learning as I go so it may be awhile.
The following user(s) said Thank You: Wicked Sick

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

  • Ioxa
  • Topic Author
More
9 years 3 months ago #16 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask
Updated the OP with a new version. Just added some more options, still a work in progress.

Still causing Neverwinter to crash which means there are probably other games that will have issues. If anyone has any ideas on how to fix this let me know.
The following user(s) said Thank You: Wicked Sick

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

  • Wicked Sick
More
9 years 3 months ago - 9 years 3 months ago #17 by Wicked Sick Replied by Wicked Sick on topic Gaussian Blur / Bloom / Unsharpmask
Thank you for this, Ioxa ^^

EDIT:

Just one question. Isn't there a way to turn this extra effect on and off, right?
Last edit: 9 years 3 months ago by Wicked Sick.

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

  • crosire
More
9 years 3 months ago #18 by crosire Replied by crosire on topic Gaussian Blur / Bloom / Unsharpmask

Wicked Sick wrote: Just one question. Isn't there a way to turn this extra effect on and off, right?

Easy, simply add "toggle = [KEYCODE];" right after "enabled = true;" in the technique line (which btw. would benefit from a nicer name, something like "technique GAUSS ...") and replace "[KEYCODE]" with the hexadecimal code of the desired key taken from here .

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

  • Ioxa
  • Topic Author
More
9 years 3 months ago #19 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Wicked Sick wrote: Thank you for this, Ioxa ^^

EDIT:

Just one question. Isn't there a way to turn this extra effect on and off, right?


No problem Wicked! Is there a specific effect you want to turn on and off or do you want to do what Crosire said and toggle everything in GAUSS on and off?

Also, thats a great idea Crosire, I'll add that in.

On a side note, I've been having some issues with this recently. I tried using it with DOF and it gave everything a red tint. I tried restarting the game and sometimes it would crash and other times it would keep running but with the red tint. Then I tried turning off DOF but the red tint remained. I even reinstalled ReShade + SweetFX, made sure that worked fine, then added GAUSS again, and I STILL got the red screen along with occasional crashing. Using that same GAUSS.fx file in another game worked just fine. I'm going through each effect one by one trying to find the problem but I can't figure out why the problem persisted after reinstalling everything and going back to a previously working configuration.

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

  • crosire
More
9 years 3 months ago #20 by crosire Replied by crosire on topic Gaussian Blur / Bloom / Unsharpmask

Ioxa wrote: On a side note, I've been having some issues with this recently. I tried using it with DOF and it gave everything a red tint. I tried restarting the game and sometimes it would crash and other times it would keep running but with the red tint. Then I tried turning off DOF but the red tint remained. I even reinstalled ReShade + SweetFX, made sure that worked fine, then added GAUSS again, and I STILL got the red screen along with occasional crashing. Using that same GAUSS.fx file in another game worked just fine. I'm going through each effect one by one trying to find the problem but I can't figure out why the problem persisted after reinstalling everything and going back to a previously working configuration.

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.

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

  • Wicked Sick
More
9 years 3 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.

  • Ioxa
  • Topic Author
More
9 years 3 months ago #22 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

crosire wrote:

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.

  • Ioxa
  • Topic Author
More
9 years 3 months ago #23 by Ioxa Replied by Ioxa on topic Gaussian Blur / Bloom / Unsharpmask

Wicked Sick wrote: 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.

  • kurtferro
More
9 years 3 months ago - 9 years 3 months ago #24 by kurtferro Replied by kurtferro on topic Gaussian Blur / Bloom / Unsharpmask

Ioxa wrote:

Wicked Sick wrote: 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: 9 years 3 months ago by kurtferro.

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

  • Ioxa
  • Topic Author
More
9 years 3 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.

  • Sh1nRa358
More
9 years 2 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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.