Three.js scene · photo-scanned · free

Regolith Moon rocks in hard sunlight with a crescent Earth

Photo-scanned moon rocks hang in low gravity above the lunar horizon. Click to strike the hero rock with a micrometeorite: a flash, a ballistic dust cone and a kick to its spin.

12-second render of the real scene: the opening pull-back, the click interaction at 6 s, then a slow orbit. Vertical 9:16 version for Shorts and Reels.

What it looks like

Seven photo-scanned lunar rocks hang motionless-but-not-quite in a low-gravity field a few metres above the Moon. The hero, a chunky blocky boulder, fills the centre of frame and tumbles very slowly on a tilted axis; behind it a dark, curved lunar horizon sits low in frame, its plain pocked with craters whose rims throw long, hard, perfectly black shadows from a low sun. The light is unfiltered sunlight from the left and slightly behind: one side of each rock is crisp and bright, the rest falls into pitch-black shadow with almost no fill, only a faint cold-blue earthshine that lets the dark faces read as form. Low on the left a crescent Earth hangs over the horizon, built entirely in shaders: blue oceans, procedural continents and cloud bands on the thin sunlit sliver, faint amber city lights on the night side, and a hair-thin blue atmosphere rim that alone blooms softly. Fine regolith dust clings to the hero's surfaces and drifts in a loose shell around it; each grain has its own mirror facet, so as the rock turns, points of sunlight glitter across it and through the hanging dust, and grains near the lens swell into soft bokeh discs. The scene opens on a 10-second pull-back that starts in macro over the rock's crater-pitted, raking-lit surface with paper-thin depth of field and eases out to the full composition. Clicking or tapping the hero fires a micrometeorite at that exact point: a white-hot flash, a brief point of light on the stone, then a hollow cone of dust and glowing ejecta that flies out ballistically with no air drag (the shell keeps its sharp front and never slows), dust knocked off the surface around the strike, and a small off-centre kick that sets the rock spinning faster before it settles back to its slow tumble. Every ~10 seconds a tiny distant impact sparkles on the horizon and throws up a faint parabolic plume. Sound is a low synthesised room-tone hum, a muffled, suit-felt thud for each strike, and a faint radio hiss with a soft click when something lands far away.

Interaction

  • Opening: 10 s (5.5 s in capture mode) pull-back from a macro view of a sunlit, raking-lit spot on the hero; the camera slides across the surface while easing out, with the lens easing from 44° to 30° and the depth of field from razor-thin to normal. The image fades up from black over 1.4 s.
  • Hero motion: constant slow tumble about a tilted axis (about 0.05 rad/s) and a gentle vertical bob; every supporting rock spins on its own axis and drifts a few centimetres.
  • Dust: 4,200 grains sampled on the hero's surface ride with it and glint when their facet catches the sun; 420 more hang in a slowly orbiting shell around it, shadowed by the rock; 380 motes drift through the volume. Out-of-focus grains become soft energy-conserving bokeh discs.
  • Cursor parallax: the camera orbits up to ±4.5° horizontally and ±2.6° vertically toward the pointer on a critically damped spring; touch nudges it on press.
  • Click / tap the hero: a raycast finds the exact point (a miss is redirected to the nearest side of the rock); a 0.06 s flash sprite and a point light fire there; 900 ejecta grains launch in a hollow 18–50° cone around the surface normal at 0.18–3 units/s with no drag and a weak pull toward the ground, glowing hot for the first third of a second; clinging dust within 0.3 units is knocked off for good; an off-centre impulse adds spin that decays back to the base tumble over about 3.6 s, and a small push springs back to rest. Three strikes can be in flight at once.
  • Idle event: every 10 ± 2 s a distant impact flashes on the horizon inside the frame and throws a plume of 80 grains in a parabola under lunar gravity, with a faint radio tick.
  • Double-click / double-tap: replays the intro. Keyboard: space fires a strike at the centre, r replays the intro.
  • Reduced motion: no intro fly-in, half-speed tumble, drift and sway.
  • Sound: starts on the first pointer or key press; the round button bottom-right mutes and unmutes.

Assets and licences

  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_02.glb: the hero rock, 2k WebP textures. CC0, Poly Haven: Moon Rock 02.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_01.glb: supporting rock. CC0, Poly Haven: Moon Rock 01.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_03.glb: supporting rock. CC0, Poly Haven: Moon Rock 03.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_04.glb: supporting rock (foreground). CC0, Poly Haven: Moon Rock 04.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_05.glb: supporting rock (distant). CC0, Poly Haven: Moon Rock 05.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_06.glb: supporting rock (distant). CC0, Poly Haven: Moon Rock 06.
  • https://copytheprompt.design/scenes/regolith/assets/moon_rock_07.glb: supporting rock (small, foreground). CC0, Poly Haven: Moon Rock 07.
  • https://copytheprompt.design/scenes/regolith/assets/regolith_diff.webp: greyscale regolith albedo detail for the ground and the rocks' macro detail. CC0, Poly Haven: Dirt (desaturated).
  • https://copytheprompt.design/scenes/regolith/assets/regolith_nor.webp: matching OpenGL normal map. CC0, Poly Haven: Dirt.
  • https://copytheprompt.design/scenes/regolith/assets/poster.webp: 1920×1080 still for the no-WebGL fallback. Generated for copytheprompt.design.

Make it yours

  1. Palette: swap the grade for a warmer, film-print Moon: set colors.blackLift to #140d08, grade.saturation to 1.05 and colors.sun to #ffe2bf.
  2. Light direction: move the sun overhead and behind the camera (light.sun.azimuth: -20, elevation: 55) for flat, high-noon lunar light with short shadows and a gibbous Earth.
  3. The hero object: replace hero.asset with another scan (any Poly Haven rock or a meteorite) and set hero.size so its longest edge is about 1.75 units.
  4. The signature interaction: make the strike a slow-motion one: set impact.speedMax to 0.9, impact.coneMax to 75 and impact.life to 20, so the ejecta curtain unfolds lazily over twenty seconds.
  5. The sound: deepen the room tone by changing the hum partials to 36, 54 and 72 Hz and raise audio.hiss to 0.02 for a busier radio channel.
  6. Camera framing: go wide and low: camera.fov: 42, camera.distance: 4.6, camera.elevation: -9, with the Earth at earth.screenX: 0.55.
  7. The Earth: turn it into a full, bright Earth by setting earth.screenX so it sits opposite the sun, or switch the city lights off with earth.cityLights: 0.

"Build exactly as specified, but with these changes: …"

How to use it

  1. Copy the prompt and paste it into Claude, Claude Code or ChatGPT, or download the zip and serve the folder over http.
  2. The prompt holds every setting in one CONFIG block plus the complete program, so the AI rebuilds this exact scene.
  3. Add your edits from “Make it yours” and drop the canvas behind your hero section.

Guides: with Claude Code · with Claude · with ChatGPT

More 3D scenes