CodeWalrus

General => Tech, Science, IT discussion & News => Topic started by: VMike on November 07, 2017, 04:18:59 PM

Title: Photoshop Oil Paint Filter
Post by: VMike on November 07, 2017, 04:18:59 PM
Hello again!
About a year ago we had a topic about Waifu2x in real time. Now I am wondering if someone is interested in something that is probably way easier. And this will be good for those who likes the look of Waifu2x. These images are made from Retroarch shaders in real time then extra filtered with Photoshops Oil Paint filter. So I wonder if someone has the code for the oil paint filter or could make it? It would then be quite easy to port to Retroarch.

https://i.imgur.com/ls2SqqF.png

https://i.imgur.com/BJ5IAdG.png

https://i.imgur.com/U6yDNMY.jpg

https://i.imgur.com/HmxQ3wf.png
Title: Re: Photoshop Oil Paint Filter
Post by: Yuki on November 07, 2017, 05:46:58 PM
Oooh, that would be nice. Photoshop is sadly proprietary software, but GIMP, its open source equivalent, might have a similar filter, you should be able to look at its code if it's the case.
Title: Re: Photoshop Oil Paint Filter
Post by: VMike on November 07, 2017, 06:08:13 PM
Yeah.. the problem is that it needa to be exactly lile the Photoshop one to get the same quality in real time while gaming.
Title: Re: Photoshop Oil Paint Filter
Post by: Dream of Omnimaga on November 07, 2017, 06:45:35 PM
Interesting. I wish such tool was available for GIMP, since with Photoshop you either pay hundreds of bucks to get a copy or you give your computer a STI.
Title: Re: Photoshop Oil Paint Filter
Post by: Yuki on November 07, 2017, 06:46:52 PM
Oilify or GIMPressionist would probably be your best bet, not sure if it would work in real time, though.
Title: Re: Photoshop Oil Paint Filter
Post by: Dream of Omnimaga on November 07, 2017, 10:11:15 PM
Oh, in my case real time would not be needed, but of course that would rule ^^
Title: Re: Photoshop Oil Paint Filter
Post by: Yuki on November 08, 2017, 12:27:15 AM
Yeah that's what he wants to do basically, implement a Photoshop or GIMP plug-in into a game shader for an emulation software. So yeah, the plugin would have to be fast enough to filter each frame in less than 1/60 of a second.
Title: Re: Photoshop Oil Paint Filter
Post by: Dream of Omnimaga on November 09, 2017, 01:02:34 PM
Quote from: Juju on November 08, 2017, 12:27:15 AM
Yeah that's what he wants to do basically, implement a Photoshop or GIMP plug-in into a game shader for an emulation software. So yeah, the plugin would have to be fast enough to filter each frame in less than 1/60 of a second.
Yeah, that's what I figured, although I was more wondering if the filter was Photoshop-only or not.
Title: Re: Photoshop Oil Paint Filter
Post by: ben_g on November 09, 2017, 03:35:30 PM
There are already a few implementations of oil painting effects in GLSL (example (https://www.shadertoy.com/view/MsXSz4#)). Maybe you could start from one of them?