Inspirations

Monarch: The Emergence

A real-time macro time-lapse on a milkweed plant: a jade chrysalis turns clear, the monarch splits it, hangs and pumps its crumpled wings to full size, dries, then takes its first flight over a sunlit meadow, with one line of biology per moment.

Made in Claude Code (Claude subscription) with claude-opus-5.5. The agent wrote code, looked at the preview and fixed it over several iterations. This is not a single-shot result: comparisons on this site show models in one attempt.

Starting prompt

Build "Monarch: The Emergence": a real-time 3D time-lapse macro film of a monarch butterfly emerging from its chrysalis on a milkweed plant and taking its first flight over a summer meadow. It should look like a nature-documentary macro shot, beautiful from the first frame, with real scale and real detail and nothing toy-like. Single self-contained HTML file; Three.js and its addons from a CDN via an import map are fine; build everything procedurally (canvas textures are fine), no external models or image files. No people anywhere.

The subject (centimetres, y up):
- A common milkweed: a downy pale-green stem about 1 cm thick with opposite pairs of broad oval leaves 12 to 14 cm long, slightly cupped and wavy, with a pale midrib, curving side veins that loop before the edge, a felted paler underside and a few caterpillar bites in the margin; drooping umbels of 40 to 60 small mauve-pink flowers on thin stalks, each flower with five reflexed petals and a crown of five pale hoods.
- The chrysalis, 2.5 cm long: glossy jade green, a black-edged ridge of gold dots across the upper third and a few gold dots below, hanging from a short black stalk hooked into a white pad of silk under a leaf.
- The monarch, wingspan 10 cm: a velvety black body with white dots on the head and thorax, large compound eyes, clubbed antennae, a coiled proboscis, four walking legs (the front pair tucked against the chest). Wings painted from the true pattern: orange cells between heavy black veins, a black border with two rows of white spots, a black forewing tip with white and pale orange spots; paler undersides with a buff hindwing and white-edged veins. A fine grain of scales with a soft sheen, and the wings glow like stained glass when the sun is behind them.

The look: early morning in a meadow.
- A low warm sun behind the subject, so the leaves, the chrysalis and the wings glow with the light coming through them, a soft cool fill from the sky, soft shadows.
- A macro lens with a shallow depth of field: only the subject is sharp. The far meadow is soft bokeh in green, gold and pink, with bright discs where dew glints. Anything that cannot be made to look real stays in the blur.
- The meadow around the plant: dense thin grasses with seed heads, more milkweed in flower and a few black-eyed Susans; no bare ground or flat lawn in view. Motes drifting in the light.
- ACES tone mapping, gentle bloom, a soft vignette, a trace of grain: rich and luminous, never muddy, never washed out.

The film, a 60-second loop, one continuous camera take; a one-line caption explains each moment:
1. The chrysalis (0 s): close on the jade case, gold dots glinting, the plant swaying. "Inside the jade case the caterpillar has dissolved; clusters of dormant cells rebuild it as a butterfly in about ten days."
2. Clearing (4 s): the case turns dark and clear and the folded orange-and-black wing shows through. "The case is clear cuticle: once the wing scales colour up, the folded wings show through."
3. Emergence (10 s): the case splits at the bottom; the butterfly pushes out head first, grips the empty shell with its legs, pulls free and hangs from it with a swollen abdomen and small, crumpled, wet wings. "It swallows air to swell, splits the case along built-in seams and climbs onto the empty shell."
4. Pumping the wings (15 s): the abdomen shrinks as the wings unfold and flatten; pale fluid runs out along the veins in pulses; the proboscis coils and uncoils as its two halves zip together. "Wing hydraulics: it pumps blood from its swollen abdomen into the veins, and the wings reach full size in about twenty minutes."
5. Drying (28 s): the wings dry, then open and close slowly in the sun, showing the dorsal pattern. "The orange is pigment in tiny scales; with the milkweed toxins stored in its body it warns birds that it tastes bitter."
6. First flight (37 s): it lets go and flies off in flaps and glides across the sunlit meadow, past milkweed umbels, where other monarchs drift in the blur. "The last summer generation flies up to 4,000 km to the fir forests of central Mexico, a route none of them has flown before."
7. A new chrysalis (52 s): the camera settles on a fresh jade chrysalis, matching the first frame, so the loop is seamless with no fade. "Monarch eggs are laid only on milkweed: egg, caterpillar and chrysalis take about a month."
The camera moves slowly and keeps the subject in focus; the plant sways in the breeze the whole time.

Interface: only a small, elegant caption in the lower left corner (title, the name of the moment, its one-line explanation) and a hairline of loop progress. Drag to look around; the view eases back to the path a few seconds after the last input. Everything starts automatically and is visibly moving from the first frame, without any interaction: no loader, no title card, no fade-in. Drive the film by wall-clock time. The layout works on a phone.

Engineering rules (the page must work on the first load, with no fixes):
- Use Three.js r170 and only methods that exist on each of its classes. Give every custom ShaderMaterial `fog: false`, and declare every uniform, constant and varying its shaders use.
- Declare each identifier once. Inside one calculation, never reuse a shared scratch vector for two values that are both still needed; use local vectors.
- Guard every animated value against NaN. Compile the shaders before the clock starts, cap the pixel ratio, and allocate nothing per frame.
- Answer with the complete file exactly once, in a single ```html code block: no drafts, partial snippets or notes.

Keep planning brief and write the code. Aim for roughly 900 to 1,300 lines, compact and well structured.