Analytical Foam

Analytical Foam

As position based simulation techniques are very fast theses days, it is possible to use them to conform intersecting spheres to each other, to model foam. Nevertheless there are other possibilities, too. In this tutorial, Manuel shows you how to come up with an analytical operator that removes the intersections from a dense sphere packing by deforming the intersecting points. This is even faster than PBD and can be used without any simulation at all. The video deals with implementing the setup. The particle effect from the demo is included in the hip file though.

01:16 Basic setup
02:24 Set pscale
04:00 Dial in the values
06:20 Implement “gather data”
16:00 The “intersection distance” formula
20:29 Implement the localization matrices
25:30 Create the deformation
33:15 Check the result
35:00 Save memory

Paul Bourke’s site on the intersection of circles:

Download the hip file here:

Cast: Entagma

Visit Entagma’s Vimeo page to view their other videos.

Leave a Reply


We value your privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web.

Skip to toolbar