Spreading Liquid with Three.js

mooreds 242 points 35 comments November 02, 2026
mofu-dev.com · View on Hacker News

Discussion Highlights (12 comments)

Conscat

I wish foundation really did spread this smoothly.

accumulator

This is magic

andai

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).

brandonpelfrey

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

etatester

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

soft-boy-xyz

I'm impressed.

socalgal2

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.

wickedsight

The color mixing brings back memories of mixing a bunch of paint colors in high school. I guess that's an indication of how well it was executed.

zodwick

Very cool work ! I was unreasonably disappointed by the element at the top ( header ) not being interactive thgh :_

gosen

that's so satisfying, except the moments when I tried to spread it on static images :D

patrick_rtk

very nice !

lichenwarp

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

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed