New Luma Sharpen
- Fu-Bama
- Topic Author
I would like to share with you new version of Luma Sharpen filter. It produces less aliasing artifacts with better performance.
Here's original filter sharpen layer:
And here's mine:
Some pics from Alien: Isolation
Before:
and After:
Before:
After:
Shader code:
Just paste the code into an empty ReShade.fx and save as FilmicSharpen.fx
Please Log in or Create an account to join the conversation.
- SandyCheeks
I guess what i'm really asking is, would we get the same(ish) results by using a form of anti aliasing followed by the old version of lumasharpen as we would by just using your shader by itself?
Please Log in or Create an account to join the conversation.
- Martigen
Please Log in or Create an account to join the conversation.
- Marty McFly
SandyCheeks wrote: That second debug screenshot is beautiful. I'm curious, is your new luma shader also implementing a form of anti-aliasing and then sharpening? Or is the lack of aliasing in your version a result of some genius shader writing
?
I guess what i'm really asking is, would we get the same(ish) results by using a form of anti aliasing followed by the old version of lumasharpen as we would by just using your shader by itself?
He's using a different blur kernel than original luma sharpen.
Please Log in or Create an account to join the conversation.
- robgrab
Please Log in or Create an account to join the conversation.
Thank youSandyCheeks wrote: That second debug screenshot is beautiful. I'm curious, is your new luma shader also implementing a form of anti-aliasing and then sharpening? Or is the lack of aliasing in your version a result of some genius shader writing
?
I guess what i'm really asking is, would we get the same(ish) results by using a form of anti aliasing followed by the old version of lumasharpen as we would by just using your shader by itself?
There's no anti-aliasing implemented in this shader, just approach to high-pass filter, or blur as Marty McFly noted, is different.
You won't get the same result with the old version as it implements it's own aliasing even to anti-aliased source. As seen on debug example.
Please Log in or Create an account to join the conversation.
Thank you.robgrab wrote: I tried it last night and now it's my new default luma sharpen. Great work!
Maybe it should replace the default Luma Sharpen in Reshade-shaders?
What do you think? I can create pull request.
Please Log in or Create an account to join the conversation.
- bacondither
Have fun experimenting
Please Log in or Create an account to join the conversation.
- Sunesha
I used it with Fallout 4 with TAA(Blurry but a very calm picture in motion) and this settings was decent:
Sharpen: 2,400
BT709
Clamp: 0,600
Highpass:1
I gonna check out later how it looks with a game with SMAA which has a lot more creepy crawly pixels in another game. But this sharpener is very subtle and nice.
But I can see how I will use this instead of the LumaSharpen in most cases. Though I like to use LumaSharpen with a low offset bias setting and high sharpen setting. If there was depth-based sharpen tool I would love that. I use selective sharpening in photowork in similar way. And depth based control sharpen would be super awesome. But not sure how it would look in a game.
Thank you, it is a vert nice sharpener on its own. More alternatives is never a bad thing
Please Log in or Create an account to join the conversation.
- Kleio420
Please Log in or Create an account to join the conversation.
What do you mean by depth-driven sharpen? Should it leave smooth transitions between foreground-background objects edges, like Panavision lenses vimeo.com/167050590 and sharpen only foreground/background-planes content? Or sharpen foreground and leave background untouched?Kleio420 wrote: what about making two modes for it one just depth based and then a third mode using depth to compare to the original pass to help only sharpen what you want more specifically then just a broad range offered atm?
I can experiment with both. I just want to know what you imagine the depth-driven sharpening would do.
Please Log in or Create an account to join the conversation.
- Kleio420
similar to the edited version of luma sharpen that was made for enb usage was thinking you could use depth as a way to lower the radius of whats sharpened rather then what appears to be applied to the entire image?Fu-Bama wrote:
What do you mean by depth-driven sharpen? Should it leave smooth transitions between foreground-background objects edges, like Panavision lenses vimeo.com/167050590 and sharpen only foreground/background-planes content? Or sharpen foreground and leave background untouched?Kleio420 wrote: what about making two modes for it one just depth based and then a third mode using depth to compare to the original pass to help only sharpen what you want more specifically then just a broad range offered atm?
I can experiment with both. I just want to know what you imagine the depth-driven sharpening would do.
Please Log in or Create an account to join the conversation.
- Sunesha
Please Log in or Create an account to join the conversation.
- Kleio420
if a sharpen shader for reshade were to work more like that it would be greatSunesha wrote: My idea of a depth--based sharpener. I show instead of tell with help of photoshop and a video. A bit long (5min)
Please Log in or Create an account to join the conversation.
Sunesha wrote: My idea of a depth--based sharpener. I show instead of tell with help of photoshop and a video. A bit long (5min)
Ok, I added depth mask to the shader.
By default it's set to preview mode for the sharpening start and stop.
Shader Code:
Please Log in or Create an account to join the conversation.
It gives some interesting results
Images:
Shader Code:
Please Log in or Create an account to join the conversation.
- Chavolatra
Panavision one and one with depth mask are two different sharpen effects. But I would suggest to use the Panavison one, since it solves the problem that Sunesha mentioned in the video in a more automatic way.Chavolatra wrote: it is last version ?
Please Log in or Create an account to join the conversation.
- Zarathustra
When I used it for Civ 6, I noticed that it accentuates white edges more than the default LumaSharpen filter, which I prefer in that case.
The accentuated bright edges are maybe something to look out for and I guess it depends primarily on the use case and personal preference which filter to use.
Please Log in or Create an account to join the conversation.
- Scorpio82CO
Please Log in or Create an account to join the conversation.