Recreation Growth Stack Alternate is a query and reply web site for skilled and impartial sport builders. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
One of the best solutions are voted up and rise to the highest
Requested
Considered
10 occasions
This is a sketch of how I would strategy an impact like that:
-
When the inside track contacts the floor of the ice cream, spawn a decal at that place that overwrites the ice cream’s normals to seem like it is bulging (like a traditional floor pound impact). As the inside track presses deeper, broaden/improve the depth of this decal.
-
As the inside track passes a threshold depth, spawn/reveal an ice cream textured sphere just below the floor of the ice cream. Scale this sphere so it is a slim spindle at first, mendacity perpendicular to the inside track route.
-
As the inside track strikes, progressively develop the sphere again to uniform scale and slide it into place within the heart of the bowl. Whereas doing this, pan the ice cream texture alongside the sphere so it seems just like the ice cream is rolling. Regulate the feel tiling in order that the main points stay the identical dimension because the sphere will get greater.
-
Behind the inside track, prolong the distortion decal right into a ribbon, just like drawing skid marks behind a automotive tire. You need to use a parallax displacement impact within the decal shader to make it seem like a concave hole.
If it’s essential to take a number of overlapping scoops out of the identical ice cream floor (not laid out in your query), then the decal fakery will not maintain up, and you could need to draw the ice cream floor utilizing a heightmap as an alternative, like terrain. The place the inside track travels, decrease the heights within the heightmap to go away a trough form.
$endgroup$
You could log in to reply this query.
Not the reply you are in search of? Browse different questions tagged unity shaders mesh .
lang-cs