Welcome, Guest.
Username: Password: Remember me

TOPIC: Kuwahara & Anisotropic

Kuwahara & Anisotropic 7 months 3 weeks ago #1

Hey,
I was porting a bunch of shaders I had laying around over to MPC-HC and I kind of stumbled on this software so I thought why not port it on here as well while I'm at it.

The filters included in this release are two versions of the kuwahara filter, the first one is a slightly tweaked copy of the original and the second is the first Anisotropic version from https://code.google.com/archive/p/gpuakf/.

The second filter won't compile on old shader models and while it can run decently on good hardware, it isn't really supposed to be used in real time, 'relies too heavily on nested loops and kind of likes to eat all of your GPU while in configuration mode, be very careful when fiddling with it !

Here's a preview of what the first shader looks like :


And the rest of the album: https://imgur.com/a/EUCWM
I don't have any screenshot of the second shader, it's very similar but drawn with softer strokes.

DL link : google drive
Extract and replace your folders by those contained in the archive, you can keep your "ReShade.fxh" if you already have one though.
The administrator has disabled public write access.
The following user(s) said Thank You: crosire, Apocalypso, andrew, WalterDasTrevas, Zarathustra, AssassinsDecree

Kuwahara & Anisotropic 7 months 2 weeks ago #2

Thanks a lot! It's great to have some artistic shaders. Even if I don't play with them I love to use them for screenshots.
Btw, do u know any good app or online site to create high quality artistic versions of images? The sites I know usually limit the image size quite severely.
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 2 weeks ago #3

I don't know of any but if you want to use those filters you could check out the demo application that the source for the anisotropic version provided (https://code.google.com/archive/p/gpuakf/downloads)
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 2 weeks ago #4

so how close is this to the aniso filtering found in nvidia card menu and most games?
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 2 weeks ago #5

It isn't related, anisotropic filtering is used to correct texture mapping onto surfaces while anisotropic kuwahara is a filter derived from kuwahara which modifies an entire image based on its "directionnality"(https://en.wikipedia.org/wiki/Anisotropy) to produce something that looks more abstract than its input.
The administrator has disabled public write access.
The following user(s) said Thank You: Sh1nRa358

Kuwahara & Anisotropic 7 months 1 week ago #6

Eideren wrote:
I don't know of any but if you want to use those filters you could check out the demo application that the source for the anisotropic version provided (https://code.google.com/archive/p/gpuakf/downloads)

Great, thanks a lot. I used that app on a few of my Total War - Warhammer shots and I like the result a lot. On most of them I applied a sharpening filter from a photo app afterwards. Looking forward to trying your shader.

Here is a small TW-WH2 - Kuwahara gallery

Before After example:



Another example:
Last Edit: 7 months 1 week ago by Zarathustra.
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 1 week ago #7

I tried the shaders in AC:O. The kuwahara filter works as it should but anistropic filter produces only black screen regardless of the settings.
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 1 week ago #8

I didn't initialize the exposed float variables properly, try it again now and tell me if those changes did anything. It probably wasn't the issue though, I don't have AC:O so could you check the logs for me and tell me if there are any suspicious lines ?
The administrator has disabled public write access.

Kuwahara & Anisotropic 7 months 1 week ago #9

Eideren wrote:
I didn't initialize the exposed float variables properly, try it again now and tell me if those changes did anything. It probably wasn't the issue though, I don't have AC:O so could you check the logs for me and tell me if there are any suspicious lines ?
Actually, the problem was that I had missed adding the texture folder correctly. Now it works as it should. Sorry, totally my bad.
The administrator has disabled public write access.

Kuwahara & Anisotropic 3 months 4 days ago #10

Hey, this is awesome!

I was wondering about that last image you posted, where it looks like you applied this shader to lord the rings video footage? That's something I've been trying to do since forever, find a video player where I can use resahde within it, however when trying out MPC-HC, I was unable to get reshade working with it.

I was wondering how you were able to do it? Or is it something different, like porting reshade shaders to MPC-HC format shaders?

Thanks.
The administrator has disabled public write access.
The following user(s) said Thank You: Eideren

Kuwahara & Anisotropic 2 months 4 weeks ago #11

Hey, sorry about the late reply, the forum doesn't seem to send me email when new replies comes in.

Yep, I originally wrote them as a bunch of shaders in MPC-HC's format so I won't be able to help you that much.
this thread mentioned that MPV player works with reshade, did you try that out ?
If you have the technical ability to port them to MPC-HC I can help you out with the API and syntax, if all you want are my MPC-HC shaders I could just upload those for you.
The administrator has disabled public write access.

Kuwahara & Anisotropic 2 months 2 weeks ago #12

Kuwahara Anistropic does not seem to work on OpenGL games. Or to be specific, No Man's Sky. Works flawlessly on DX games and this is the only OpenGL game I have, so I'm not sure if it's game specific or renderer specific. It also could be a bug in ReShade as there seems to be some problems in the OpenGL-part of it.

The log shows nothing of use. The last entry is that Kuwahara Anistropic is being compiled. Then the game crashes instantly without giving ReShade any possibility to write any related errors to the log. Removing the shader fixes the crash and also the regular Kuwahara filter works just fine.
The administrator has disabled public write access.

Kuwahara & Anisotropic 2 months 10 hours ago #13

Anisotropic is fairly complex, I don't think that it works on Dx9 either, that said I still tried it out on "The Chronicles of Riddick" and on "Dota 2".
Dota 2 on opengl did indeed crash the game on compile.
Riddick is pretty old by now so I kind of expected it to fail to compile and it did but without crashing the entire application, perhaps because it failed on an earlier part of the code while dota 2 continued further and hit something that crashed the whole thing. So this seems more likely linked to reshade's support of newer versions of opengl and opengl in general; a bunch of the default shaders included, while they don't crash the game, can't compile on either games.

I'll debug this one out once reshade fixes some of the issues that it has with opengl.
The administrator has disabled public write access.