Vellum Playground - 10 - Mixing Vellum Fluids - Part 3: Bubbles Simulation
🕑 Added 2023-04-24 07:10:36 +0000 UTCIn the third part of episode ten, we'll be introducing bubbles to our fluid simulation. To achieve this, we'll be utilizing a straightforward and adaptable POP configuration that will enable us to generate bubble particles from the fluid simulation we've already created.
Content
00:00 - Select random particles by a threshold using VEX
05:00 - Particle bubble simulation using POPs
08:48 - Filter particles based on the distance to the fluid volume
13:04 - Add geometry to the bubble simulation
16:00 - Adjust the scale of the bubbles
17:05 - Prepare the bubble's geometry for rendering
Comments
The Attribute from Volume node is measuring a distance to the surface of the volume. 0 means it´s exactly on the surface, minus values are inside and plus values outside. The values are determined by the size of the SDF. If you change the Half-Band Voxels on the VDB from Particle node, you will get different values, because these specify the size of the distance field. You can remap the value in the Attribute from Volume node under Mapping.
Hi, Thanks for the course. Just a quick question. When you are getting "AttributeFromVolume", separating the bubbles within the fluid to those outside, can you explain the value given to the 3 Cd values (Cd.x/y/z)? In the Geo Spreadsheet it looks as if it's going from -0.018 to 0.018. Is there a reason we couldn't change this ramp, so for instance centre of the fluid is -1 and a point of infinity outside of fluid is 1, and 0 is the boundary? I'm struggling to see where the logic is being derived from. Thanks in advance!