# How a Developer Faked Spreading Liquid Foundation with Three.js

Original title: Spreading Liquid with Three.js

> Hacker News story 50341576 · language: en · submitted 2026-11-02
> Web version: https://zeli.app/story/50341576
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 240 · by [mooreds](<https://news.ycombinator.com/user?id=mooreds>) · 💬 32
[original](<https://mofu-dev.com/en/blog/fluid-foundation/>) · [HN discussion](<https://news.ycombinator.com/item?id=50341576>)

## Summary

Misaki Nakano explains how he built the liquid foundation simulation for a Japanese cosmetics site in 2021. A fluid simulation drives a velocity map, which moves a height map representing liquid thickness; a separate alpha map keeps the traces left behind, and normals computed from the height map add highlights via a Matcap texture. He admits the volume isn't conserved — circular strokes keep adding liquid — but the look is what matters.

## Key quote

> This method prioritizes visual appearance rather than accurately conserving the amount of liquid.

## HN discussion (32 comments)

### [andai](<https://news.ycombinator.com/item?id=50375485>)

> This is neat. It doesn't seem to conserve volume. If you spread the blob "inward", all the fluid disappears and you get a tiny thin spot.
>
> That's a general problem I often run into with simulations. When you get it in the opposite direction it can have some very amusing results (e.g. energy in a physical system continues to increase).

### [etatester](<https://news.ycombinator.com/item?id=50375633>)

> The conclusion made me sad:
>
> \> Publishing this may mean the method is no longer something special.

### [lichenwarp](<https://news.ycombinator.com/item?id=50379368>)

> It would be funny if the one that works only with touch gestures left fake fingerprints.

### [socalgal2](<https://news.ycombinator.com/item?id=50376412>)

> what is the point of three.js in this demo? It feels like showing me a CSS effect on a DIV and saying "built with React". It's a nice demo. But it's not doing anything that needs a giant library to do.

### [brandonpelfrey](<https://news.ycombinator.com/item?id=50375531>)

> This seems useful (after modifications) for building a calligraphy application.

---

## Cite

- Page: https://zeli.app/story/50341576
- Date: 2026-11-02
- Source: mofu-dev.com (https://mofu-dev.com/en/blog/fluid-foundation/)
- Hacker News: https://news.ycombinator.com/item?id=50341576

## Other languages

- zh: https://zeli.app/zh/story/50341576 · markdown: https://zeli.app/zh/story/50341576.md
- ja: https://zeli.app/ja/story/50341576 · markdown: https://zeli.app/ja/story/50341576.md
- ko: https://zeli.app/ko/story/50341576 · markdown: https://zeli.app/ko/story/50341576.md
- de: https://zeli.app/de/story/50341576 · markdown: https://zeli.app/de/story/50341576.md
- es: https://zeli.app/es/story/50341576 · markdown: https://zeli.app/es/story/50341576.md
- ru: https://zeli.app/ru/story/50341576 · markdown: https://zeli.app/ru/story/50341576.md
