Blender Tutorial: Lego Fluid Effect

Ray Mairlot · 151K views · 2015 · 51:45

Open on YouTube

Animation & visual effectsComputer graphics & renderingtutorialdated

Why Blender Stack Exchange recommends it

Blender Stack Exchange answerers point people to it when asked how to make Lego-style fluid or brick simulations, including fixes for remesh jitter and brick sizing.

Recommended by 4 people across 3 different months, 2016 to 2019.

What it is

A 52-minute Blender 2.73a tutorial by Ray Mairlot on building a fluid effect that looks like it is made of Lego bricks. It covers setting up the fluid simulation, creating the materials, a build-up animation effect, and a pile of bricks.

What people said

Recommends JHZTME UIBNA · 2016-12 · Blender Stack Exchange · on “Fluid with blocks remesh modifier jittering”

I was following this tutorial [this video] The heart of the problem that boolean modifier must be placed before remesh modifier. Maybe this problem is stupid, but I hope that this answer is useful nonetheless.

Recommends Ray Mairlot · 2016-12 · Blender Stack Exchange · on “Fluid with blocks remesh modifier jittering”

From your gif and blend it looks like you are following my tutorial, in which case the solution is at around 13 minutes in [this video]

Recommends RLGUY · 2019-09 · Blender Stack Exchange · on “Lego Water with Dupliverts doesn't work!”

To see your original domain size, set the domain Viewport setting to 'Geometry' which will display the original geometry of the domain box. The remesh modifier only generates a grid of cubes. If your lego brick model is not a perfect cube, it will overlap or leave gaps between the bricks. To fix this, you can stretch the fluid simulation to match to match the size of your bricks. Ray Mairlot shows a good way to do this using a Lattice modifier in this Lego Fluid Effect tutorial around 10m10s: [this video]

Recommends Leander · 2019-10 · Blender Stack Exchange · on “How do I make more complex LEGO simulations in Blender?”

The final codes [LINK] requirements are listed at the end of the post. The tutorial by Ray Mairlot [this video] , which JBlock linked in the comments, is helpful for fluid simulations, or anything with a surface. I will give insight into a method for volumetrics, specifically smoke, with different pieces. For professional use, you could include pyopenvdb [LINK] (the install [LINK] is complicated) functionality. We can access the density_grid [LINK] of the smoke with python. From [brickarchitect.com], we gather the dimensions of the smallest brick. (The smallest brick is a third of the heigt in the following image: 3.2mm.) [LINK] Click to enlarge Distinguishing Slopes with Convolution We will use