build a 20-second procedural bonsai animation in Blender, entirely from Python. no downloaded models, textures or HDRIs. use the official Blender connector (execute_blender_code, get_screenshot_of_window_as_image, render_viewport_to_path) and save everything in this project folder
GOAL
a bonsai grows from a bare pot on a slow turntable, cycles through four seasons and ends in full cherry blossom at sunset with a gust of petals swirling around the camera. every branch, leaf, snow clump and petal comes from one seeded generator, so a new seed gives a new tree
FILES
→ generators/bonsai.py: one entry function grow_bonsai(seed, depth, split_angle, taper, leaf_density, blossom_count, petal_size) that builds the whole tree. deterministic for a given seed
→ generators/scene.py: pot, soil, moss, rocks, table, lights, camera, turntable
→ generators/animate.py: growth keyframes, seasons, petals, sun
→ bonsai.blend saved after each stage, renders/ for previews, out/bonsai.mp4 for the final
→ NOTES.md with the seed, the parameters and every fix you made
THE TREE
→ recursive branching (L-system or space colonization): a thick trunk with a bonsai S-bend, 5 to 7 levels of branches thinning toward the tips, a slight random twist per branch, a dome canopy with 3 to 4 foliage pads
→ branches as curves with bevel or a skin modifier so the radius follows the taper. procedural bark from noise and wave textures, dark grey-brown with lighter ridges
→ leaves: small low-poly leaf meshes instanced on branch tips with Geometry Nodes or a particle system, clustered into pads, with a random attribute per leaf for color variation
→ blossoms: 5-petal cherry blossoms on the same tips, hidden until spring
→ exposed roots gripping a rock at the base
THE SCENE
→ shallow glazed ceramic pot (deep blue-grey), dark soil, moss patches, two small rocks
→ the pot sits on a round wooden turntable that makes one full rotation over the 20 seconds
→ background: a soft gradient from dark warm grey to near black, no walls in view
→ lighting: a Sky Texture (Nishita) for the sun plus one soft area light as key, with the sun angle keyframed per season
→ camera: 50 mm, three-quarter view slightly below the canopy, slow push-in over the whole clip. 1080x1350 frame, tree centered, canopy filling the upper two-thirds
TIMELINE (60 fps, 1200 frames)
→ 0 to 1.5 s: bare pot and rock, a small glowing seed point in the soil, early morning light
→ 1.5 to 7 s: the trunk rises first, then every branch grows outward from its parent in order. leaves bud on each tip right after its branch finishes. fresh summer green under a bright midday sun
→ 7 to 10 s: autumn. leaves shift green to orange to deep red with random timing per leaf, then fall and settle on the moss and table. low warm sun
→ 10 to 12.5 s: winter. bare branches, snow settling on top of the branches and the pot rim, blue hour light, a few snowflakes
→ 12.5 to 15 s: spring. the snow melts, buds swell and burst into pale pink blossom, tip by tip
→ 15 to 18.5 s: full bloom at sunset with long golden shadows. a gust lifts hundreds of petals that swirl around the camera, some passing right by the lens (particles with wind and turbulence force fields, or keyframed instanced petals)
→ 18.5 to 20 s: the petals drift down and settle while the camera holds on the finished tree
LOOK
cozy, cinematic and tactile: soft shadows, subtle depth of field focused on the trunk, gentle bloom on the sunset light. bark grey-brown, summer green, autumn crimson and orange, winter blue, blossom pale pink, sunset gold. low-poly is fine if the lighting carries it
RENDER
EEVEE, 1080x1350, 60 fps, frames 1 to 1200. FFmpeg H.264 at high quality to out/bonsai.mp4, plus 4 PNG stills: mid-growth, autumn, winter, full bloom
CHECK BEFORE THE FINAL RENDER
→ render previews of frames 300, 510, 690, 870 and 1020 with render_viewport_to_path and look at each one
→ fix floating branches, leaves inside the trunk, a canopy cut off by the frame, petals blocking the view, or a sun that’s too bright or too dark
→ re-render only the frames you changed and log every fix in NOTES.md
→ tell me the estimated full render time before you start the final render
DELIVER
out/bonsai.mp4, the 4 stills, bonsai.blend, the three generator files and NOTES.md