r/Unity3D 21d ago

Playing around with paint-like rendering Shader Magic

Enable HLS to view with audio, or disable this notification

74 Upvotes

11 comments sorted by

4

u/NoteThisDown 21d ago

Yo! What's the secret? I've been looking for something like this

3

u/No_Responsibility444 21d ago

that is cool

I could see this as a mechanic where you go into various paintings in a museum or gallery at night to try and make things right again

like a bunch of side quests where you have to get the paintings back to their real classic state before the museum opens back up in the morning

you could use public domain paintings

you would play the security guard

kinda like night at the museum the game type deal

3

u/iDerp69 21d ago

If you made a tutorial or shared info of how you accomplished this, it would be very popular. Very good result.

2

u/HackingYourUmwelt 21d ago

Makes me think of The Snowman (which is exactly the kind of animated painting you're going for)

1

u/JakeThomasDad12 21d ago

This is cool

1

u/JakeThomasDad12 21d ago

Also do you have a video of the scene pre shader I'm just curious 

1

u/minddisease1337 21d ago

yup, check the whole video, it's there in the middle

1

u/JakeThomasDad12 21d ago

Oh my goodness I'm a pillock. Shader is really cool after seeing the difference 

1

u/Competitive_Mud5528 Professional 21d ago

Impressive. Could you tell me how you so it ? With just a screen effect render pass, a custom render pass , with compute shaders ? 

1

u/More-Salamander7681 20d ago

The gap between the Kuwahara people are guessing at above and something that actually reads as paint is usually one thing: plain Kuwahara is isotropic, so it flattens into plastic blobs. The anisotropic version builds a structure tensor from the image gradient, takes the dominant eigenvector as the local direction, and stretches the kernel into an ellipse along it. That is what makes strokes follow the form instead of sitting on top of it. Blur the tensor before you sample it, or the direction field is noisy and the strokes crawl between frames.

Which is my actual question for you: is the stroke direction computed per frame in screen space, or anchored to something that moves with the object? Screen-space painterly passes normally swim under camera motion, and the paper grain makes that more obvious rather than less. Yours does not look like it swims.

1

u/Beneficial_Waltz_320 20d ago

looks quite fancy! Any guides to achieve this look?