$begingroup$

now I could make cylinder form with shader. However what I need to do is like selecting up ice cream with an ice cream scoop. How can I do that?

What I did

What I want to do.

$endgroup$

1

$begingroup$

This is a sketch of how I would strategy an impact like that:

  1. 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.

  2. 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.

  3. 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.

  4. 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 .