Baltor Get started

Gallery / Blender tools

Soap bubble material with thin-film colours

In your harnessBlender toolMIT

Build a soap bubble material: a reflective layer whose thin-film thickness grows from top to bottom like a draining film and swirls with noise, mixed over a transparent shader by Fresnel so the bubble is clear face on and iridescent at grazing angles. Use it for bubbles and iridescent films.

Render of Soap bubble material with thin-film colours
The render its check recorded in Blender 5.2.1, 192 by 192 pixels.

What it takes and gives

Operator
baltor.material_soap_bubble
Parameters
material_name, top_thickness, bottom_thickness, swirl, swirl_scale, film_ior, assign
Result
One material with a node tree; assigned to the active object.
Blender
4.2 or later
Axes
Blender Z up, -Y forward
Units
metres

Limits. Needs the Thin Film inputs of the Principled BSDF (Blender 4.2 or newer). The film is shaded on a single surface with no refraction through a liquid layer, which suits thin bubbles but not thick soap water. Drainage follows the object's generated Z, so rotating the object rotates it. Rendered here with Cycles CPU only. Verified in Blender 5.2.1; written for the 4.2 API.

Details

Kind
Blender tool
Engine
Blender 4.2 or later
Files
11 files, 116.6 KB
Licence
MIT
Declared effects
runs commands
Checked with
Blender 5.2.1, background (Cycles CPU for previews)
Checks
addon install and enable, operator runs with defaults, blender data matches core, addon disable unregisters, script mode runs, clean reopen addon file, clean reopen script file, gltf separate export, engine output clean
Techniques
Thin-film interference through the Principled BSDF thin film inputs, Gravity drainage as a thickness gradient over height, Fresnel mix of a transparent and a reflective shader
Tags
blender, material, shader nodes, thin film, iridescence, bubble, transparent
Identity
library.supply.creative_originals.0d83b1ba35edc47858c2058b.3f76cbae80cae57e
Version
3f76cbae80cae57edf60c419b229d43a2a05e3d762c31af0098ed143738044f9

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.