Spreading Liquid With Three.js
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Developer Misaki Nakano has published a technical account of a liquid-spreading effect built for a Japanese cosmetics brand’s 2021 promotional project. The Three.js method uses a fluid simulation’s velocity map to move values in a height map, then derives opacity and surface normals for rendering.

Developer Misaki Nakano has published a technical explanation of a Three.js liquid-spreading effect created for a Japanese cosmetics brand’s liquid-foundation promotion in 2021. The method uses a fluid simulation’s velocity map to move liquid thickness across a height map, offering developers a shader-based way to reproduce spreading without deforming 3D geometry.

Before you orderOffer from Amazon

Get everyday helpers delivered free with Prime

  • Fast, free delivery on millions of items
  • Prime Video, Amazon Music and more included
  • Member-only deals all year
Start your free Prime trial Free trial for eligible customers · Cancel anytime
As an affiliate, we earn on qualifying purchases.

Nakano said the account follows a presentation about the effect at Vue Fes Japan 2026 and builds on an earlier article about fluid simulation. The original assignment arrived in January 2021; Nakano wrote that they spent about a month handling foundation and considering how to represent its appearance and movement. The new demonstration uses blue liquid rather than a makeup shade.

The technique stores liquid thickness in a separate framebuffer object, or FBO, called a height map. A fragment shader initializes that map with a rounded mound, recording its height in the red channel. During updates, the program samples the fluid simulation’s velocity map, which represents movement direction and strength at each screen position.

For each pixel, the shader subtracts some thickness where the flow is strong, traces backward along the velocity to find a source position, and adds thickness sampled there. Nakano describes this backward tracing as advection. The resulting height map is then used with an alpha map to control opacity; normals calculated from the map and a Matcap material help produce the rendered surface. The account says the liquid is rendered in a fragment shader rather than through geometry deformation.

At a glance
reportWhen: Published after Nakano’s presentation a…
The developmentMisaki Nakano published a technical explanation of how a Three.js fluid simulation drives a liquid-foundation spreading effect.

How the Height Map Moves Liquid

The implementation shows how a fluid simulation can serve as the motion system for a separate visual effect. Instead of representing the foundation as a mesh whose shape must be changed, the technique tracks thickness in a texture and shifts that data according to the simulated flow. This keeps the spreading behavior tied to the same velocity field used to represent movement elsewhere in the simulation.

For developers building interactive product demonstrations, the distinction is practical: the approach combines fluid motion, surface thickness and shader rendering as connected stages. Nakano’s account also makes clear that the effect is not a direct physical model of a cosmetic product. It is a graphics technique designed to reproduce visible behavior, with parameters controlling how much material moves when the flow crosses a threshold.

The method’s relevance is not limited to foundation. The same general structure—using a velocity field to advect a height or density texture—can inform other real-time visual effects. The source, however, documents this particular implementation and does not report performance measurements or comparisons with alternative techniques.

Bose QuietComfort Headphones (2nd Gen), Wireless Over-Ear Noise-Cancelling Headphones, Black

Bose QuietComfort Headphones (2nd Gen), Wireless Over-Ear Noise-Cancelling Headphones, Black

As an affiliate, we earn on qualifying purchases.

From Foundation Brief to Demo

Nakano’s report links the effect to two related developments. The first was a promotional project for a Japanese cosmetics brand, developed in 2021. The second was an interactive website for trying textures of foundation and makeup base from the Primavista series. Nakano said the site went live in June of the year referenced in the report and that the implementation was handled after contact from homunculus.

The report places the new explanation after Nakano’s earlier writing on fluid simulation, which covers the velocity map used here. That earlier simulation is treated as a foundation rather than re-explained in full: the current account concentrates on transferring movement into thickness, updating opacity, and rendering the result. The embedded demonstration invites users to drag a mouse or finger across the blue liquid.

Although the effect imitates a material used in makeup, the published description is about real-time graphics implementation, not cosmetic testing or product performance. The source does not describe the brand’s approval process, the project’s audience, or how the effect was deployed beyond the promotional and texture-simulation website references.

Limits of the Published Method

The report does not provide benchmark data, such as frame rate, memory use, or results across different devices. It also does not quantify how closely the simulation matches real foundation or identify the full range of parameter values needed to reproduce the demonstration. The shader excerpts show key steps, but the source refers readers to the earlier fluid-simulation article for the underlying velocity field.

It is also unclear from the report how the implementation handles boundaries, long-running accumulation, or cases where thickness could be depleted during repeated updates. Those details should not be inferred from the excerpts alone. Nakano describes a working visual effect and its main data flow, not a complete evaluation of physical accuracy or production performance.

Further Shader Details to Follow

Nakano’s article says it will focus on updating thickness and opacity and rendering the result, while the fluid simulation itself is covered separately in the earlier post. Readers seeking to recreate the full effect will need to combine the height-map steps described here with that prior velocity-simulation material and the remaining shader and rendering details in the report.

The account does not announce a new product launch, release date, or planned software update. The immediate next step for readers is to inspect the original technical posts and try the interactive demonstration, while treating the published excerpts as an explanation of the method rather than a complete performance or compatibility guide.

Key Questions

What is the Three.js effect?

It is an interactive graphics effect that simulates liquid spreading when a user drags across it. Nakano developed the original version for a liquid-foundation promotional project.

How does the effect move liquid thickness?

A fluid simulation supplies a velocity map. A shader uses that flow to subtract thickness at one position and add thickness sampled from a backward-traced source position in the height map.

Does the technique deform 3D geometry?

No. Nakano says the raised liquid is rendered in a fragment shader, using height-map information, rather than by deforming the geometry.

When was the original effect developed?

Nakano says the assignment began in January 2021 and that the promotional effect was developed in 2021.

Does the report include performance results?

The source material does not give frame-rate, memory-use, or device-compatibility benchmarks. It explains the main implementation steps but does not report a performance evaluation.

Source: mofu-dev.com

This article is for informational purposes only and is not medical advice. Always consult a qualified healthcare professional about your specific situation.
You May Also Like

What Loudness Normalization Means for Voice Deliverables

Optimizing your voice recordings through loudness normalization ensures consistent, professional sound quality across all platforms—discover how it can elevate your voice deliverables.

Jurassic Park computers in excruciating detail

An in-depth review reveals the complex computer systems behind Jurassic Park, highlighting their architecture, vulnerabilities, and operational intricacies.