{"id":"physical-lights","version":"1.0.0","title":"Physical Lights","summary":"Coloured point lights circling over a polished wooden floor and a ring of metal objects, with bloom. Loops perfectly.","kind":"object","target":"three","collections":["chrome-glass","hypnotic-loops","product-reveals"],"tags":["point lights","coloured lights","orbiting lights","metal","wood floor","reflections","bloom","lighting","studio","loop","3d"],"loopable":true,"motion":"procedural","durationSeconds":16,"status":"published","media":{"poster":"https://aipixelwizard.com/media/physical-lights/1.0.0/poster.webp","preview":"https://aipixelwizard.com/media/physical-lights/1.0.0/preview.mp4","sample":"https://aipixelwizard.com/media/physical-lights/1.0.0/sample.mp4","sampleBytes":7188157,"sampleNote":"Pre-rendered with the default settings. Customised settings must be exported locally (npm run render)."},"urls":{"page":"https://aipixelwizard.com/visuals/physical-lights","manifest":"https://aipixelwizard.com/api/v1/visuals/physical-lights/versions/1.0.0","agentMd":"https://aipixelwizard.com/registry/physical-lights/1.0.0/agent.md","files":"https://aipixelwizard.com/registry/physical-lights/1.0.0/","demo":"https://aipixelwizard.com/registry/physical-lights/1.0.0/index.html"},"description":"Coloured lights circling over a polished wooden floor and a ring of metal objects. Real point lights (red, green and blue by default, with physically based falloff) orbit at different heights and speeds; where their pools overlap on the boards the colours mix, on the metal they slide across as sharp coloured reflections, and each light is a small glowing bead that blooms. Choose the number of lights, the colours (rgb, warm, cool or neon), the objects (mixed metals or all spheres), how strong the lights are, the base laps per loop, the seed, and whether the camera sways.","role":"Scene (3D, three.js): a showcase of coloured light on metal and wood, for product, music and moody content.","useCases":["A lighting, product or hi-fi brand scene","A music or club visual with real reflections","A moody ambient loop"],"synonyms":["light show","orbiting lights","rgb lights","coloured spotlights","light reflections","moving lights"],"digest":"a099d6fc78ea458bfad46d5992989c877326de1dbc144a75f1c3ba31790baa05","implementation":{"target":"three","runtime":"browser","language":"javascript","module":"esm","entry":"src/physical-lights.js","exports":[{"name":"createLightShow","signature":"createLightShow({ lights?, palette?, objects?, power?, laps?, seed? }) => { group, setProgress(progress), dispose() }","description":"The floor, six metal objects and the orbiting lights with their beads, about 14 across, the floor on y = 0; needs a dim environment map and a bloom pass."},{"name":"createBloomPass","signature":"createBloomPass(renderer, { width, height, glow?, exposure?, grain? }) => { render(scene, camera, output?), dispose() }","description":"A small bloom with an anti-aliased, depth-tested scene target."},{"name":"PALETTES","signature":"PALETTES: { rgb, warm, cool, neon }","description":"Light colour sets."}],"reusable":["src/physical-lights.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":"lights","label":"Lights","type":"integer","min":1,"max":6,"step":1,"default":3},{"key":"palette","label":"Colours","type":"select","default":"rgb","options":[{"value":"rgb","label":"Red, green, blue"},{"value":"warm","label":"Warm"},{"value":"cool","label":"Cool"},{"value":"neon","label":"Neon"}]},{"key":"objects","label":"Objects","type":"select","default":"mixed","options":[{"value":"mixed","label":"Mixed metals"},{"value":"spheres","label":"Spheres"}]},{"key":"power","label":"Light power","type":"number","min":0.5,"max":2,"step":0.1,"default":1},{"key":"laps","label":"Base laps per loop","type":"integer","min":1,"max":3,"step":1,"default":1},{"key":"seed","label":"Seed","type":"integer","min":1,"max":999,"step":1,"default":17},{"key":"orbit","label":"Camera sway","type":"boolean","default":true}],"presets":[{"id":"default","label":"RGB, mixed metals","params":{}},{"id":"warm","label":"Warm, four lights","params":{"palette":"warm","lights":4}},{"id":"neon","label":"Neon, six lights, spheres","params":{"palette":"neon","lights":6,"objects":"spheres","power":0.8}},{"id":"cool","label":"Cool, two lights","params":{"palette":"cool","lights":2,"power":1.4,"laps":2}}],"output":{"width":1080,"height":1080,"fps":30,"durationSeconds":16,"posterSeconds":3,"alpha":false,"motion":"procedural","loop":{"seamless":true,"cycleSeconds":16,"method":"Each light makes a whole number of laps per loop (the lights differ by whole laps and alternate directions), bobs by whole cycles, and every object turns a whole number of times, and the camera sway is a sine of the loop, so the last frame meets the first."},"seed":{"param":"seed","behavior":"Seed picks the boards' colours and grain and the lights' radii and starting angles: same seed, same room."}},"composition":{"inputs":"Time within the loop; the lights, colours, objects, power, laps, seed and camera sway.","outputs":"A full frame rendered in 3D through an anti-aliased bloom.","coordinates":"The floor (60 across) lies on y = 0; the objects stand in a ring of radius 4.6–5.1; lights orbit at radii 2.2–6.5 and heights 2.4–3.3.","lighting":"Up to six physically based point lights (decay 2) plus a faint studio environment for the metals; each light carries a self-lit bead.","timing":"setProgress(progress) places each light and turns each object; frames render in any order.","compatibleWith":["chrome-material","orbit-camera","kinetic-title","number-reveal"],"notes":["No shadow maps are used, so the lights cost little; the boards are drawn once on a canvas."]},"reuse":["Lighting brand: RGB, mixed metals.","Warm hospitality: Warm, four lights.","Club: Neon, six lights, spheres."],"integration":{"newProject":"Create a WebGLRenderer, give the scene a dim environment map, add createLightShow().group and call show.setProgress(progress) each frame; render with createBloomPass(renderer, { width, height }).","existingProject":"Copy src/physical-lights.js; add the group to your scene with a dim environment map and render through createBloomPass."},"performance":{"notes":"A floor, six metal meshes and up to six point lights without shadows, plus the bloom: a couple of milliseconds a frame on an integrated Intel GPU.","limits":"Software WebGL renders in several seconds a frame."},"limitations":["Metals reflect the lights and a faint environment, not each other.","There are no shadows, so the objects do not cast light-coloured shadows on the floor."],"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/lighting-materials/physical-lights (MIT) and rebuilt for AI Pixel Wizard in October 2026 as an original scene: physically based coloured point lights orbiting by whole laps over a canvas-drawn wooden floor and six metal objects, through a bloom, on an exact loop.","changelog":[{"version":"1.0.0","date":"2026-10-05","notes":"Initial release."}],"verification":{"testedOn":"2026-10-06","inputs":{"physical-lights@1.0.0":"a099d6fc78ea458bfad46d5992989c877326de1dbc144a75f1c3ba31790baa05","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":2729.6,"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/physical-lights/1.0.0/poster.webp","preview":"/media/physical-lights/1.0.0/preview.mp4","sample":"/media/physical-lights/1.0.0/sample.mp4","sampleBytes":7188157}},"files":[{"path":"LICENSE","size":1072,"sha256":"8a5f3a96f07e11522ec4bdd0a583356f99bad1245920f9709cee09b995a45153","contentType":"text/plain; charset=utf-8","url":"https://aipixelwizard.com/registry/physical-lights/1.0.0/LICENSE"},{"path":"asset.json","size":8467,"sha256":"16eee25e64d165ac270de35f685776a88a228244094af06c83e71ab26e301e9b","contentType":"application/json; charset=utf-8","url":"https://aipixelwizard.com/registry/physical-lights/1.0.0/asset.json"},{"path":"demo.js","size":1815,"sha256":"16d595769e8b827cdf6e2bc6138c7f58a969646b8642f7664db43d36dfbde823","contentType":"text/javascript; charset=utf-8","url":"https://aipixelwizard.com/registry/physical-lights/1.0.0/demo.js"},{"path":"index.html","size":529,"sha256":"8c61635c464c66b9b0aefc8b65dc983a1c5fc422fe3853129f72a4ba3e5d72bc","contentType":"text/html; charset=utf-8","url":"https://aipixelwizard.com/registry/physical-lights/1.0.0/index.html"},{"path":"src/physical-lights.js","size":13038,"sha256":"a874eab30827af45390977409af8d7eba463510fa11a64137f3a434477d06d99","contentType":"text/javascript; charset=utf-8","url":"https://aipixelwizard.com/registry/physical-lights/1.0.0/src/physical-lights.js"}],"warnings":[]}