{"id":"perpetual-motion","version":"1.0.0","title":"Perpetual Motion","summary":"The overbalanced wheel, the oldest perpetual motion machine: hinged weights swing out on the falling side and fold in on the rising side. Loops perfectly.","kind":"object","target":"three","collections":["satisfying","hypnotic-loops","product-reveals"],"tags":["perpetual motion","overbalanced wheel","wheel","weights","hinged arms","mechanism","history","impossible machine","brass","studio","loop","3d"],"loopable":true,"motion":"procedural","durationSeconds":16,"status":"published","media":{"poster":"https://aipixelwizard.com/media/perpetual-motion/1.0.0/poster.webp","preview":"https://aipixelwizard.com/media/perpetual-motion/1.0.0/preview.mp4","sample":"https://aipixelwizard.com/media/perpetual-motion/1.0.0/sample.mp4","sampleBytes":3555891,"sampleNote":"Pre-rendered with the default settings. Customised settings must be exported locally (npm run render)."},"urls":{"page":"https://aipixelwizard.com/visuals/perpetual-motion","manifest":"https://aipixelwizard.com/api/v1/visuals/perpetual-motion/versions/1.0.0","agentMd":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/agent.md","files":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/","demo":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/index.html"},"description":"The overbalanced wheel: the oldest design for a perpetual motion machine, drawn by Villard de Honnecourt in the 1200s and reinvented ever since. A wheel carries hinged arms, each ending in a heavy weight. On the way down the arms swing out so their weights hang far from the axle; on the way up they fold in close, so the wheel always seems heavier on the falling side and should turn for ever. (It does not: a machine like this cannot work, which is the whole fascination.) Choose the number of arms, the metal (brass, steel, copper or bronze), the wood of the stand, the whole turns per loop, the backdrop colour and whether the camera sways.","role":"Object (3D, three.js): a classic curiosity of engineering history that turns for ever, for science, history and design content.","useCases":["A physics or history-of-science explainer","A curiosity or \"impossible machine\" title","A hypnotic mechanical loop"],"synonyms":["perpetual motion machine","overbalancing wheel","villard de honnecourt wheel","endless wheel","impossible machine","free energy wheel"],"digest":"06a2d08206b82a817e197774e46e15eb851b35cdfb0fddb27837dbea527d3f63","implementation":{"target":"three","runtime":"browser","language":"javascript","module":"esm","entry":"src/perpetual-motion.js","exports":[{"name":"createOverbalancedWheel","signature":"createOverbalancedWheel({ arms?, metal?, wood?, turns? }) => { group, setProgress(progress), dispose() }","description":"The wheel on its stand, about 9 across and 11 tall, standing on y = 0; needs an environment map."},{"name":"METALS","signature":"METALS: { brass, steel, copper, bronze }","description":"Metal finishes with colour and roughness."}],"reusable":["src/perpetual-motion.js"],"demo":"demo.js","harness":"index.html"},"dependencies":[{"id":"three","version":"0.185.1","scope":"source","reason":"Renderer, geometry and shader materials."},{"id":"chrome-material","version":"1.1.0","scope":"demo","reason":"Studio environment light, backdrop and contact shadow."},{"id":"apw-runtime","version":"1.0.0","scope":"demo","reason":"Demo harness."}],"uses":[],"usedBy":[],"params":[{"key":"arms","label":"Arms","type":"integer","min":8,"max":20,"step":1,"default":12},{"key":"metal","label":"Metal","type":"select","default":"brass","options":[{"value":"brass","label":"Brass"},{"value":"steel","label":"Steel"},{"value":"copper","label":"Copper"},{"value":"bronze","label":"Bronze"}]},{"key":"wood","label":"Wood","type":"select","default":"oak","options":[{"value":"oak","label":"Oak"},{"value":"walnut","label":"Walnut"},{"value":"pine","label":"Pine"}]},{"key":"turns","label":"Turns per loop","type":"integer","min":1,"max":3,"step":1,"default":1},{"key":"background","label":"Backdrop","type":"color","default":"#1c1814"},{"key":"orbit","label":"Camera sway","type":"boolean","default":true}],"presets":[{"id":"default","label":"Brass, twelve arms","params":{}},{"id":"steel","label":"Steel, many arms","params":{"metal":"steel","arms":18,"wood":"walnut","background":"#12161c"}},{"id":"copper","label":"Copper, eight arms","params":{"metal":"copper","arms":8,"turns":2,"background":"#1c1210"}},{"id":"bronze","label":"Bronze, pine","params":{"metal":"bronze","wood":"pine","background":"#241e18"}}],"output":{"width":1080,"height":1080,"fps":30,"durationSeconds":16,"posterSeconds":3,"alpha":false,"motion":"procedural","loop":{"seamless":true,"cycleSeconds":16,"method":"The wheel turns a whole number of times per loop and each arm's fold is a function of where it is on the wheel, which repeats exactly, and the camera sway is a sine of the loop, so the last frame meets the first."},"seed":null},"composition":{"inputs":"Time within the loop; the arms, metal, wood, turns, backdrop and camera sway.","outputs":"A full frame rendered in 3D with a studio environment.","coordinates":"The axle is at y = 6 on the z axis; the wheel (rim radius 3.2) turns clockwise seen from +z; each arm is 1.7 long and swings out to a radius of about 5.","lighting":"A warm key light with a shadow map, a shadow-catching floor and the studio environment.","timing":"setProgress(progress) sets the wheel angle and every arm's fold from its position; frames render in any order.","compatibleWith":["chrome-material","orbit-camera","kinetic-title","number-reveal"],"notes":["The arms are fully out when the spoke points to the right-hand side and folded in on the left; the fold blends smoothly through the top and bottom."]},"reuse":["History explainer: Brass, twelve arms.","Cool: Steel, many arms.","Warm: Copper, eight arms."],"integration":{"newProject":"Create a WebGLRenderer with a studio environment and a shadow-casting light, add createOverbalancedWheel().group and call wheel.setProgress(progress) each frame.","existingProject":"Copy src/perpetual-motion.js; add the group to your scene with an environment map."},"performance":{"notes":"A few hundred small meshes and a shadow map: about a millisecond a frame on an integrated Intel GPU.","limits":"Software WebGL renders in about a second a frame."},"limitations":["It is a picture of an impossible machine: it moves by formula, not by its own weight.","The folded arms pass through the rim at some wheel angles."],"license":{"spdx":"MIT","notice":"Copyright (c) 2026 AI Pixel Wizard. Released under the MIT License. See LICENSE in this folder.","thirdParty":[]},"rights":{"approvedForPublicRelease":true},"provenance":"Adapted from the owner's threejs-sketches/objects-scenes/perpetual-motion (MIT) and rebuilt for AI Pixel Wizard in October 2026 as an original studio object: an overbalanced wheel with hinged weighted arms folded by position on the wheel, turning by whole turns on a wooden stand, on an exact loop.","changelog":[{"version":"1.0.0","date":"2026-10-05","notes":"Initial release."}],"verification":{"testedOn":"2026-10-06","inputs":{"perpetual-motion@1.0.0":"06a2d08206b82a817e197774e46e15eb851b35cdfb0fddb27837dbea527d3f63","three@0.185.1":"664ca387e5fab46ff2daaa6895e1d015426850891af5ea5082cbbcc3985b068c","chrome-material@1.1.0":"ecb41776bfc1ee88997604f916a5ffe833f971d7edcc97c855697a5792d6f1dd","apw-runtime@1.0.0":"5be859cdac74823ba0bcc32c6daf06688a871104d24db5d4ceaffffd84d7c40d"},"environment":"Chrome 154.0.8037.97 headless on Linux 7.0.0-38-generic (x64), Node 22.14.0","renderer":"WebGL 2 via SwiftShader (software)","width":1080,"height":1080,"fps":30,"frames":480,"renderSeconds":543.4,"loopCheck":{"checked":true,"seamless":true,"maxDifference":0,"note":"Frame 0 vs end state (progress 1): mean |Δ| 0.0000, max |Δ| 0 of 255."},"determinism":{"checked":true,"identical":true},"errors":[],"media":{"poster":"/media/perpetual-motion/1.0.0/poster.webp","preview":"/media/perpetual-motion/1.0.0/preview.mp4","sample":"/media/perpetual-motion/1.0.0/sample.mp4","sampleBytes":3555891}},"files":[{"path":"LICENSE","size":1072,"sha256":"8a5f3a96f07e11522ec4bdd0a583356f99bad1245920f9709cee09b995a45153","contentType":"text/plain; charset=utf-8","url":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/LICENSE"},{"path":"asset.json","size":7917,"sha256":"86b44413869ad07590717dc19e9bfa057354687a5a545e60386fc56c25209308","contentType":"application/json; charset=utf-8","url":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/asset.json"},{"path":"demo.js","size":2444,"sha256":"943f1c34f1ef5fd28a9929e4aedc3d21d60e55bf85cb5a61bf7af6a8a83a7cc6","contentType":"text/javascript; charset=utf-8","url":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/demo.js"},{"path":"index.html","size":530,"sha256":"29f9b853580329254e9561bcfdfae98cdbc2849048d65c2302a9ca126fffbf7f","contentType":"text/html; charset=utf-8","url":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/index.html"},{"path":"src/perpetual-motion.js","size":5645,"sha256":"7762b1a2fd18b9f92c121f29bb70207c1a8a83f1a81e7bbca38694db69deab49","contentType":"text/javascript; charset=utf-8","url":"https://aipixelwizard.com/registry/perpetual-motion/1.0.0/src/perpetual-motion.js"}],"warnings":[]}