Skip to content

Prayer Wheel

A polished brass prayer wheel with embossed glyphs and turquoise studs spinning on its handle, a weighted chain swinging round it. Loops perfectly.

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

In Craft & heritage

Next: Snow GlobeSurprise me

Prayer Wheel 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

2
1
13

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

Info

What it is

A hand-held prayer wheel: a drum of polished metal embossed all round with rows of script-like glyphs and lotus petals, studded with turquoise, crowned with a dome and finial and carried on a wooden handle. The drum turns steadily and a little weight on a chain swings out round it as it spins, so the embossing catches the light as it goes by. The glyphs are decorative and not any real script. Choose the metal (gold, brass, silver or copper), how many turns the drum makes per loop, how many turquoise studs, the seed that varies the glyphs, the backdrop colour and whether the camera sways.

Reuse it in your own idea

  • Wellness title: Gold, two turns.
  • Calm: Brass, slow.
  • Cool: Silver, fast.

Which part is reusable

src/prayer-wheel.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 glyphs are decorative marks and not a real script or mantra.
  • The chain is a straight line of links with a slight sag, not a simulated chain.

Technical details

Technical details
Implementation
Three.js 0.185.1 (WebGL) · ES module src/prayer-wheel.js
Exports
  • createPrayerWheel({ metal?, spin?, stones?, seed? }) => { group, setProgress(progress), dispose() }
  • METALS: { gold, brass, silver, copper }
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 wheel's axis is vertical through the origin; the drum (radius 1.7, height 2.6) spins at y = 3.5; the handle runs down to y ≈ 0; the weight swings at radius 3.4–3.8.

Lighting: A warm key light with a shadow map, a shadow-catching floor and the studio environment on the metal.

Timing: setProgress(progress) sets the drum's angle and the chain; frames render in any order.

Output
1080×1080, 30 fps, 16 s · procedural (computed from the frame number) · seamless loop — The drum turns a whole number of times per loop, the weight's orbit follows the drum's turn with a lag that swings in sines of whole cycles, and the camera sway is a sine of the loop, so the last frame meets the first.
Tested
Rendered 480 frames on 2026-10-06 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 few thousand triangles, a bump map, up to 48 instanced studs and nine chain links with a shadow map: about a millisecond a frame on an integrated Intel GPU. Software WebGL renders in about a second a frame.
Export a video yourself
Download the source, then in the folder: npm install npm run render -- prayer-wheel/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:6a564015f59b0d57…
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/objects-scenes/prayer-wheel (MIT) and rebuilt for AI Pixel Wizard in October 2026 as an original studio object: a bump-mapped drum with petal bands and procedural decorative glyphs, a finial, studs and a hand-held spinning chain weight on an exact loop.
BinMore like this

Snow Globe

3D object3DSeamless loop12 seconds

Cable Knit

3D object3DSeamless loop16 seconds

Music Box

3D object3DSeamless loop12 seconds

Astrolabe

3D object3DSeamless loop16 seconds