HurricaneTutorial 06

Soft-Serve Ice Cream Simulation in Blender with Viscosity and Mapping

Pipe a soft-serve ice cream onto a cone: an emitter animated along a spiral, high viscosity, an Age Mapping layer that thickens the cream, and liquid meshing.

6 steps11 min

In this tutorial we pipe a soft-serve ice cream onto a cone: a star-shaped emitter climbs a spiral and releases a very thick cream that piles up in layers and holds its shape.

You will animate the emitter with a Follow Path constraint, set up a viscous emitter with the APIC solver, use a Mapping layer driven by the particles' Age so the cream gets thicker as it ages, bake the particles and turn them into a smooth, lightweight mesh with Liquid Meshing and Adaptive Resolution.

Step by step

  1. Step 1

    Prepare the scene: the star's path and the cone

    The star (the Emitter object) will be the emitter: it travels up a spiral and releases particles on top of the cone. Add a Follow Path constraint to the star and set its Target to Spiral. On the first frame, keyframe the Offset at 0; on frame 72, set Offset to -100 and add another keyframe. Set the keyframe interpolation to Linear (press T in the timeline) and the star now climbs the spiral. Then hide the spiral to work more comfortably.

    Next, add the cone as a collider: in the Colliders module, select it and click Add Selection (in the video it was already in the Collider List; it is removed and added again to show how). Set the Friction high, to 0.911, so the cream grips the cone.

  2. Step 2

    Turn the star into a viscous emitter

    With the star selected, open Add Emitter and choose Active Object. In the Simulation module, keep the Solver on APIC (you could use MPM, but it will be covered in future tutorials). In the Viscosity panel, turn on Viscosity and keep Per-Emitter Viscosity checked: even with a single emitter, you then set the viscosity in the emitter's own settings (Emitter tab → Main Settings).

    If you press Play now, the star only emits on the first frame, because the default Emission Type is Emitter Fill. Switch it to Emitter Flow and set Frame Start | End to 1 and 72, the end of the spiral animation. Play it again: the cream flows now, but the default Honey viscosity is clearly not nearly enough.

  3. Step 3

    Make the cream thick and organic

    Everything here happens in the emitter's Main Settings:

    • The particles are very small: raise Particle Size to 2.
    • Set Inherit Velocity to 1 so the particles take the emitter's speed when they're born.
    • The most important change is the viscosity itself: in Base type 20 and in Exponent 0. That is 20 m²/s, far thicker than melted chocolate (the preset changes from Honey to Custom).

    Play it again and two problems show up. Inherit Velocity is too high and the particles fly out too fast: drop it to 0.2. And the star shape is far too obvious: use Jitter to scatter the particles a little and make the simulation more organic (1 is too much; the video settles on 0.35). In the Display tab, choose Sphere in Type | Outline to see the particles better. Finally, give the particles a Velocity of 1: it's getting closer to what we want.

    Reading Base and Exponent

    The panel shows the resulting viscosity under the fields: Honey (Base 2, Exponent 3) is 0.002 m²/s, while Base 20 with Exponent 0 is 20 m²/s.

  4. Step 4

    Thicken the cream with age using Mapping

    The cream still collapses right away: even with such a high viscosity, it eventually gives in under its own weight. The fix is to make it thicker as it ages. In the emitter's Mapping tab (Layers), click + to add a layer and set its Source to Age, in seconds (s). In Range set 0.5 to 1: the stretch of age over which the setting will change.

    In Settings it drives, click + and add Viscosity. From already shows the emitter's 20; set To to 200. After one second of age, the cream is ten times thicker. Turn on Color Particles to see it: newborn particles are blue and turn yellow as they reach 200. The ice cream now holds its shape much better.

    One small detail left: scale the emitter down over the last frames of emission so the cream ends in a tip. In the video, the scale is keyed at frame 60 and, at frame 71, the star is scaled to about 0.12 and keyed again.

  5. Step 5

    Add detail and bake the particles

    Since you like the result, it's time to save the simulation's cache. First, lower Particle Spacing a little, to 0.048: this roughly doubles the particles, still runs quite fast and gives a much better result.

    When you're happy with it, go to the Cache module, where your emitter is listed. Save the scene and press Bake All. When the bake finishes, save the scene again: this time you can move through the timeline.

    What the Live Preview is

    The banner at the top of the viewport (LIVE PREVIEW ONLY · Not baked) tells you you're in the Live Preview: a temporary view that saves no cache. That's why you can't scrub back in the timeline, but it lets you work much faster with thousands of particles.

    Bake time

    The bake is sped up in the video: in real time it takes about 40 seconds for more than half a million particles.

  6. Step 6

    Mesh the cream and bake the mesh

    In the Surface module, open the Surface Generation menu and choose Liquid Meshing. The mesh needs a little more detail, so lower Voxel Size to 0.8. Turn on Adaptive Resolution and enable Wireframe to see the triangles: with it, there are fewer triangles where the surface is smooth. Then lower Voxel Size to 0.6, and in Filtering turn on Smooth to soften the geometry a little without losing detail.

    When you're happy with the mesh, go back to the Cache module, select your mesh (Liquid_GPU_Sim_01) under Surfaces and press Mesh from Cache. The mesh cache is quick too (it's sped up in the video). When it's done, hide the particles to see the final ice cream.

    How much Adaptive Resolution saves

    With and without it you can barely see the difference, but it cuts the geometry by up to 81%.

You now have a soft-serve ice cream that piles up on the cone and holds its shape, with a viscosity that changes with each particle's age. This was a very basic example: Mapping has many more sources and conditions to explore.