Unity Dynamic Deformation Shader with Amplify.

preview_player
Показать описание
This here’s a shader tutorial that has many uses, I show you how you can create the real-time illusion of a ball scurrying under a rug, with the aid of render textures (which is where you turn your cameras output into a readable texture!) but with a little bit of tinkering you could even make snow trail shaders with this, or making your character push grass out of the way.

----------● Support Links:

----------● Social Links:

----------● Third Party Links:
Рекомендации по теме
Комментарии
Автор

THANK YOU!! I was looking in to how to create ripples in a water shader but i had NO IDEA where to even start on how to make a dynamic shader like this. Thank you soooo much!

NutyRiver
Автор

Wow! This is a mind-blowing tutorial, we can do tons of similar things based on this trick

abclef
Автор

thanks, i used this as inspiration to make a shader

placebo_yue
Автор

really really cool video! However, particles are not needed -you could attach fixed image of white gradient circle to the sphere and it would do the same thing. However, the particle idea is super useful in this concept for some other applications (water ripples - as someone already commented). Thanks a lot!

plazicx
Автор

das some fine-ass knowledge!! thank you for sharing this one.

mehrankhan
Автор

this is really great!!! Thanks u so much =D

RenderAndReviews
Автор

Very nice technique, you inspire me ;)

AETutsVids
Автор

Maybe you could only have feed the sphere world position to the rug and made the vertex offset by distance ? but works only with one ball

baptistep
Автор

Is there a way to scale this without affecting the deformations? It seems no matter what I do to try and scale it I always end up with the deformation effect changing size with it

spycrabcarl
Автор

Is it also possible to modify the mesh collider of the rug?

ktest
Автор

Can we use it for 3d model? I have teied for default cube but I do not get any result. Thanks

andaccoban
Автор

we could do the same thing just by sending the position of the sphere to the shader, then doing the distance function to smooth out. and then apply deformation using those. probably more performant. however the problem when deforming the mesh is how you correct the normals.

bdenix
Автор

instead of the particle you could use a quad and a black texture

siavashaliyari
Автор

Is it possible to make it deform to complex shapes (like a heart or star shape)?

munyunu
Автор

Thanks for this! But is there a way to deform the surface of a mesh relative to another mesh? For example; I'd like to have the surface of the balloon indent when my VR finger touches it. Any thoughts would be appreciated!

DigitalAdamTech
Автор

The render texture Technic is really awesome!
my concern is how can this be scaled up in a real project ? imagine you have multiple "blankets" that your character can go under, are we now forced to used multiple materials each with its own render texture and camera ? some tricks can be applied like for example not having 2 blankets too close to each other so when the player reach a certain radius the camera get parented by the possibly-next blanket but is that it ?

I wonder if its possible to use the player world-position to effect the blanket directly.

alaslipknot
Автор

hey, this was really cool, do you think you could use something similar to this technique to create like snow you can stomp with a boot? bc atm it seems like the only shape you can use for the displacement is a sphere. In any case, thank you for the info :)

ZiplawDev
Автор

Very nice, i made something similiar but this is a lot cleaner!

tehuster
Автор

Serve para adicionar na roupa do personagem ?

josimarfpsbrasil
Автор

Exactly what I was looking for! Amazing. As a newbie, I'm just wondering what part of this is actually related to the 'amplify shader tool'? (I have no experience with shaders in unity so maybe it's a ridiculously obvious thing).

brechtdebackere