Hello folks. I’m trying to implement an algorithm I found for creating an oil panted effect over a given image:
but I can’t seem to get it to work. I’m using a custom node in a post process material to handle the nested FOR loops needed to compare the pixels surrounding the pixel being rendered, and everything seems to compile fine, but when I apply the effect in my scene, all I get is some weird noise.
So, obviously something is failing. I’m assuming it’s the SceneTextureLookup call I am making within the custom node, but I can’t find any decent docs or examples of how to use this function to be sure if that’s the cause or not. If anyone is able/willing to take a look at my material & code and point out what idiot thing I am doing, I would be very grateful.
Here’s the material:
And here’s the code in the OilPaint node:
As you can see, I’ve done my best to duplicate the algorithm from the link at the top, but it’s just not working. Hopefully it’s some simple thing I’m over looking and not some intrinsic limitation to the post process material that is preventing this from working as I’d think it would look pretty cool…
Thanks in advance for any help. And yes, this is a repeat of a post on the Answerhub, but most people don’t check there too often, so I’m hedging my bets. Cheers,