Skip to content

Möbius Flow

A glass Möbius strip with a glowing edge and a river of beads that takes two laps to get home. Loops perfectly.

3D object, V2 Objects3DSeamless loop, verified112 lines of codev1.0.0

In Science & maths, Light, glass & shine

Next: Newton's CradleSurprise me

Möbius Flow preview
Starting live preview…
00:00:00:00 / 00:00:00:01

Live, running the real source at reduced resolution.

Your current settings go with it. Combine several clips and hand them over together from your sequence.

Effect controls

Presets

120
1
1
1
10

The preview runs the same code your AI receives. These settings travel with the hand-off.

Info

What it is

A Möbius strip: a band with one half-twist, so it has only one side and one edge. A river of glowing beads runs along it in lanes, and because the strip is one-sided every bead makes two laps to come back to where it began, passing from what looks like the top to what looks like the bottom and back. The glass-like strip turns slowly while its single edge glows. Choose the number of beads, the colours (aurora, ember, pearl or mono), the width of the strip, how many double laps the beads make per loop, the turns of the strip, the seed, the backdrop colour and whether the camera sways.

Reuse it in your own idea

  • Infinity brand: Aurora, 120 beads.
  • Warm: Ember, wide.
  • Calm: Pearl, two laps.

Which part is reusable

src/mobius-flow.js is the ingredient your AI reuses. demo.js is only the example scene around it, and uses chrome-material only for the demo.

Good to know

  • The strip is translucent without true refraction; beads show through it.
  • A faint seam can show where the strip's ends join.

Technical details

Technical details
Implementation
Three.js 0.185.1 (WebGL) · ES module src/mobius-flow.js
Exports
  • createMobiusFlow({ beads?, palette?, width?, laps?, turns?, seed? }) => { group, setProgress(progress), dispose() }
  • PALETTES: { aurora, ember, pearl, mono }
Dependencies (exact)
  • three@0.185.1 (source) — Renderer, geometry and shader materials.
  • chrome-material@1.1.0 (demo) — Studio environment light, backdrop and contact shadow.
  • apw-runtime@1.0.0 (demo) — Demo harness.
How it fits a scene

Coordinates: The strip's core circle has radius 2.2 and it is hung 3.3 above the floor; its half-width is 0.95 × the width setting.

Lighting: A warm key light with a shadow map and the studio environment on the glass; the beads and edge are self-lit.

Timing: setProgress(progress) places every bead and turns the group; frames render in any order.

Output
1080×1080, 30 fps, 16 s · procedural (computed from the frame number) · seamless loop — Each bead makes a whole number of double laps (it comes back to the same place after two turns round a one-sided strip), the strip turns a whole number of times per loop and the camera sway is a sine of the loop, so the last frame meets the first.
Tested
Rendered 480 frames on 2026-10-05 in Chrome 154.0.8037.97 headless on Linux 7.0.0-38-generic (x64), Node 22.14.0 (WebGL 2 via SwiftShader (software)). Same frame twice from fresh pages: identical. Loop: Frame 0 vs end state (progress 1): mean |Δ| 0.0000, max |Δ| 0 of 255.
Performance
A static mesh of about 6 000 triangles, a line and up to 300 instanced beads with a shadow map: a couple of milliseconds a frame on an integrated Intel GPU. Software WebGL renders in about two seconds a frame.
Export a video yourself
Download the source, then in the folder: npm install npm run render -- mobius-flow/1.0.0 --out my-video.mp4Needs Node 18+, ffmpeg and Chrome/Chromium. Add --params my-settings.json (from Copy settings) for your own settings.
Version
1.0.0 · sha256:068b3f34b5b036bf…
Files
License
MIT. Copyright (c) 2026 AI Pixel Wizard. Released under the MIT License. See LICENSE in this folder. License details
Provenance
Adapted from the owner's threejs-sketches/geometry-math/mobius-flow (MIT) and rebuilt for AI Pixel Wizard in October 2026 as an original studio object: a translucent iridescent strip, its single glowing edge and beads on lanes making double laps with a whole-turn rotation, on an exact loop.
BinMore like this

Soap Film

3D object3DSeamless loop12 seconds

Ferrofluid

3D object3DSeamless loop16 seconds