About Nvidia Sharpen

More
3 months 1 day ago #1 by sanek7814
About Nvidia Sharpen was created by sanek7814
Hi everyone, nvidia freestyle has a "Details" subsection and it has a sharpen function. This function could also be activated in the Nvidia control panel. I would like to know if this type of sharpness can be added to the reshade? I know that there are already several types of sharpness in the reshade, but the sharpness from nvidia is the best according to my testing. It does not create artifacts and is to some extent better than CAS by AMD which was ported to the reshade.

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

More
3 months 1 day ago #2 by rj200
Replied by rj200 on topic About Nvidia Sharpen
I'm guessing it might be the same as NVSharpen? Open source code can be found here:
github.com/NVIDIAGameWorks/NVIDIAImageScaling

(Docs say to set NIS_SCALER=0 to make it sharpen only and not scale.)

It's for integrating in games, but one could probably port it to ReShade.

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

More
3 months 16 hours ago #3 by sanek7814
Replied by sanek7814 on topic About Nvidia Sharpen
Maybe it will be possible to port it, but I don't know how and I don't know a person who would like to do this.

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

More
2 months 3 weeks ago #4 by odikzz2
Replied by odikzz2 on topic About Nvidia Sharpen
Yah i want Details.fx to ported to reshade too if someone will do it.

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

More
1 week 23 hours ago #5 by YF
Replied by YF on topic About Nvidia Sharpen
I can try it from Magpie.

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

More
1 week 22 hours ago #6 by sanek7814
Replied by sanek7814 on topic About Nvidia Sharpen
It would be great, then add it to github. I think people will like it.

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

More
1 week 6 hours ago - 6 days 23 hours ago #7 by YF
Replied by YF on topic About Nvidia Sharpen
NVSharpen
Warning: Spoiler!
Last edit: 6 days 23 hours ago by YF.

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

More
1 week 1 hour ago #8 by sanek7814
Replied by sanek7814 on topic About Nvidia Sharpen
I get an error when compiling
Error x3020: cannot convert these types (from float to float[5])

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

More
6 days 23 hours ago #9 by YF
Replied by YF on topic About Nvidia Sharpen
Which version you use?I use 5.1.0 and no error

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

More
6 days 22 hours ago - 6 days 21 hours ago #10 by lordbean
Replied by lordbean on topic About Nvidia Sharpen
It's an array access violation. I'm not strictly sure it should be compiling successfully on 5.1.0 either, although it seems to. Correction that makes it compile on 4.9.1:
float interp0Deg[5];
{
[unroll]
for (int i = 0; i < 5; ++i) {
interp0Deg[i] = p[i+10];
}
}
rval.x = EvalUSM(interp0Deg, sharpnessStrength, sharpnessLimit);
// 90 deg filter
float interp90Deg[5];
{
[unroll]
for (int i = 0; i < 5; ++i) {
interp90Deg[i] = p[2+5*i];
}
}

Edit: this fix is probably actually present already in YF's ported code. If you look closely though, the forum's BBcode is interpreting the array reference tag to mean "start italics here" and removing it. Using the code header instead of the spoiler header fixes that.
Last edit: 6 days 21 hours ago by lordbean.

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

More
6 days 18 hours ago - 6 days 17 hours ago #11 by sanek7814
Replied by sanek7814 on topic About Nvidia Sharpen
Thanks to lordbean for the fix. I used version 5.1.0 in saints row 4 (dx 10 or 11)
P.S Either it's a bug, or it's a sharpness feature from nvidia. The fact is that, for example, when using CAS or DELC, the sharpness goes all over the picture (even houses in the distance become visible) In the case of nvidia sharpen, these very houses are not visible. As if sharpness is added only to nearby objects.
Last edit: 6 days 17 hours ago by sanek7814.

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