Welcome, Guest.
Username: Password: Remember me

TOPIC: Oil, paint, or cel-shading filters

Oil, paint, or cel-shading filters 1 year 9 months ago #1

  • Nerd
  • Nerd's Avatar
  • Offline
  • Posts: 38
  • Thank you received: 5
Master Effect and SweetFX have a cartoon edge filter but full screen art is what I'm requesting. I've only seen Oblivion's graphics extender and Dolphin's OpenGL FX plugin(which seems to be a cartoon edge filter expanded upon) implement such a thing. I think it would be really cool if we could play certain games with an active oil painting filter for instance.

Is it impossible to do well in real-time or are shader modders just uninterested?

Here are videos showing what I'm talking about.



I'm mainly requesting this because some emulated games don't look good no matter what you do(Okami on PS2) but with a filter like this you could, I'd imagine, forcefully improve the visuals.
Last Edit: 1 year 9 months ago by Nerd.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #2

  • Omnipotus
  • Omnipotus's Avatar
  • Offline
  • SweetFX Veteran
  • Posts: 34
  • Thank you received: 14
I'm with you on this mate, I'd love a filter/shader that could do something similar to this, I'd also love a SuperEagle type sprite shader too for "retro" games and heck even new ones, who knows, could be a cool effect, that Skyrim "Oil" effect is noice :D
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #3

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
There is already one available. I already ported it to ReShade, but paint shader does not work for some reason. I actually know the problem, the code just needs some minor modification. But I need to have talk with CeeJay or Crosire to be sure. The cel shading however works for games with depth buffer access. I can share it if you'd like but keep that in mind paint shader does not work (yet). :)
The administrator has disabled public write access.
The following user(s) said Thank You: SiriusHours, Omnipotus

Oil, paint, or cel-shading filters 1 year 9 months ago #4

  • Omnipotus
  • Omnipotus's Avatar
  • Offline
  • SweetFX Veteran
  • Posts: 34
  • Thank you received: 14
Add me to Steam: OmnipotusX and lets have a lil chat :)
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #5

holy the Skyrim oil painting effect is unbelievable, as if I had just taken a hit of acid :P

I would scream lol

This is an amazing job, great work!
Last Edit: 1 year 9 months ago by SiriusHours.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #6

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
Here is the cel shader from GSdx FX Suite v2.20:
Screenshots
Download

Just copy to your current working SweetFX directory. It is based on v2.0 Preview 3. Enjoy. :)

Note: It might give warning when it is used with Shader Model below 4.0, but it still seems to be working. Will look into it later.
Last Edit: 1 year 9 months ago by JPulowski.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #7

  • Nerd
  • Nerd's Avatar
  • Offline
  • Posts: 38
  • Thank you received: 5
Awesome, thanks!

Earlier I requested this shader be ported over and he did too :)
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #8

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
Kuwahara filtering by Jan Eric Kyprianidis + Depth-buffer based cel shading by kingeric1992:




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

Oil, paint, or cel-shading filters 1 year 9 months ago #9

  • Ioxa
  • Ioxa's Avatar
  • Offline
  • Posts: 267
  • Thank you received: 245
JPulowski wrote:
Kuwahara filtering by Jan Eric Kyprianidis + Depth-buffer based cel shading by kingeric1992:
Warning: Spoiler! [ Click to expand ]


Soon. :)

R.I.P. Text

But the effect is really cool looking. How does it look in motion?
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #10

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
It looks really great and natural. Closer objects are more detailed, and further objects are fuzzy like in a real painting.

At current stage paint, cartoon or similar shaders are just proof of concept or suitable for those who like to take artistic screenshots. In the future ReShade will be able to detect 2D and 3D content, then it will be more suitable for gaming use.

Also Kuwahara filtering's actual purpose is denoising. Which means it can be also used to denoise, smoothen the image etc.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #11

  • Nerd
  • Nerd's Avatar
  • Offline
  • Posts: 38
  • Thank you received: 5
I'm really looking forward to that. Using the storybook shader has made me realize I'd like fullscreen shaders that smooths, or stretches everything out if that makes any sense. I don't think it makes sense :P.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #12

  • Ioxa
  • Ioxa's Avatar
  • Offline
  • Posts: 267
  • Thank you received: 245
JPulowski wrote:
It looks really great and natural. Closer objects are more detailed, and further objects are fuzzy like in a real painting.

At current stage paint, cartoon or similar shaders are just proof of concept or suitable for those who like to take artistic screenshots. In the future ReShade will be able to detect 2D and 3D content, then it will be more suitable for gaming use.

Also Kuwahara filtering's actual purpose is denoising. Which means it can be also used to denoise, smoothen the image etc.

Good to hear it looks good in motion. I thought it might look like the oil painting one that was posted in here where everything looked like it was crawling. I'm looking forward to trying this out when it's ready.

There was a quest in Oblivion where you went inside a painting, "A Brush with Death". It looked amazing, made me want to play the entire game like that. The effect was probably achieved through textures instead of post processing though. Here is a picture of it.



Still waiting to play an entire game in this style.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #13

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
Here is a similar effect from Skyrim:


But note that it is done in Photoshop, which should give better results since it is not done in real-time.

I remember that quest from Oblivion. If I remember correctly, it was done with textures and some simple shaders like the one in Telltale's latest Game of Thrones video game.

Also another Kuwahara implementation with "flow" effect: www.shadertoy.com/view/MsXSRN
Might be possible to port. :)
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #14

  • Ioxa
  • Ioxa's Avatar
  • Offline
  • Posts: 267
  • Thank you received: 245
Thats the video I was talking about where it looks like everything is crawling, like someone else said, it looks like an acid trip. Although watching it again I think it would benefit from a depth based effect like the cell shading one you posted. As is, everything seems to blend together. Or maybe it's just the video quality, might look different in game.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #15

  • Nerd
  • Nerd's Avatar
  • Offline
  • Posts: 38
  • Thank you received: 5
That one's scary.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #16

JPulowski wrote:
There is already one available. I already ported it to ReShade, but paint shader does not work for some reason. I actually know the problem, the code just needs some minor modification. But I need to have talk with CeeJay or Crosire to be sure. The cel shading however works for games with depth buffer access. I can share it if you'd like but keep that in mind paint shader does not work (yet). :)

Any luck on the Oil Paint shader? What did you get stuck on? I made one in Reshade, but there were some definite odd behaviors I had to work around.
The administrator has disabled public write access.

Oil, paint, or cel-shading filters 1 year 9 months ago #17

  • JPulowski
  • JPulowski's Avatar
  • Offline
  • Posts: 92
  • Thank you received: 86
One More Try wrote:
Any luck on the Oil Paint shader? What did you get stuck on? I made one in Reshade, but there were some definite odd behaviors I had to work around.
The paint effect shader for ENB uses Kuwahara filtering, but the code is not optimization-friendly. It works when compiler optimizations has been disabled. I guess ENB skips optimization therefore such effects work fine with it.

But since it uses Kuwahara filtering, similar implementations are already available and they work fine with optimization. I am going to release it when ReShade 0.15 comes out. :)
The administrator has disabled public write access.