A still image that becomes the scene.

We wanted the opening to feel like part of the app from the first frame. Show its world while the 3D prepares underneath, then move into it.

We captured the actual scene: the same procedural pumpkins, recipes, positions, camera and lighting. Phone, portrait and wide each have their own composition, leaving space for the lettering and central pumpkin. A crop of the desktop view would not give them the same attention.

The image can arrive while the app is still loading. Underneath, we build the scene, prepare shaders and draw the objects that the camera will reveal. Preparing only the visible pumpkin left its neighbors compiling just as they entered the shot.

View the phone opening
The phone opening, with pumpkins framing the title, a central orange pumpkin, the knife shadow and the growing-vine loader.
The phone composition gives the title and central pumpkin their own space. It is captured from the scene at this camera angle rather than cropped from the wide opening above.
Method diagram From a captured render to a live pumpkin scene
  1. Paint the captured view

    Display the scene’s own rendered image and the title before the full app is ready.

  2. Prepare behind it

    Build, compile and draw the opening and the neighbours that the turn will reveal.

  3. Match the live frame

    Keep the same pose, lighting and shadow phase as the still gives way to the renderer.

  4. Move into the tool

    Clear the leaves and turn toward the row, carrying the selected pumpkin onward.

The vine grows with completed preparation stages, with a 4.5-second minimum to set the pace. It keeps moving between stages and catches up gently after a pause. It shows preparation progress rather than downloaded bytes. The last stretch waits for the live scene; a timer alone cannot start the camera.

The tricky part was matching the light as well as the camera. A moving 2D shadow pattern covers the still until the live light takes over at the same phase. A shifted shadow or different exposure reveals the swap. We recapture when the scene’s look changes and compare both versions at the same pose and shadow phase.

After the live scene draws at the captured pose, the still fades while the title and vine stay in place. A gust clears the maple leaves and the camera turns down to the swipeable pumpkin row. Choose one and it carries into Customize or carving. Reduced motion keeps the light still and uses crossfades instead of camera moves.

Back to contents
01 / Procedural form

A family of pumpkins,
from one generator.

We wanted a family of pumpkins that felt grown. Giving every rib the same shape made them too regular; varying everything independently lost the form.

Separate surface layers. Orange skin surrounds the thicker golden wall and the empty interior cavity.
Outer rind
The outside silhouette and its material coordinates
Flesh / skin boundary
The material beneath the skin, exposed by cuts and shaves
Interior cavity
The space available to pulp, tools and light
Conceptual section. Separate boundaries support the surface, cut walls and interior.

Each rib gets its own width, depth and crest radius. Smooth transitions join its neighbors, while one angular layout keeps the grooves running from crown to base.

The generator describes three boundaries: outer rind, the flesh beneath it and the hollow cavity. They can vary independently, leaving different wall thicknesses at the crown, sides and base for cutting, scooping and light.

A saved recipe records proportions, ribs, surface settings, pattern seed and stem choices. Later tools rebuild from those same choices. Flat, tall, pear-shaped and uneven pumpkins all come from this generator.

Current app / A configurable pumpkin patch

Presets are starting points.

This gallery records 52 starting pumpkins. Flat, deeply ribbed forms sit beside narrow towers, pear shapes, broad shoulders, tiny white pumpkins and sagging giants. Orange, red-orange, cream, tan and blue-grey rinds broaden the family further.

Hourglass and bottle shapes pinch that same body into a waist or a smaller upper half. The gallery shows combinations to start from; the controls let you go further. Pick a preview and its recipe follows you into shaping, carving and lighting.

A recipe you can change and share.

The recipe is plain, versioned JSON: the choices needed to rebuild the pumpkin, rather than a saved mesh. Shape, color and stem can change independently within the generator’s limits.

Body
Size, height, lean, fullness, upper and lower bulges, and local flattening.
Lobes
Count, depth, seam width, crest shape, unevenness and adjustments to individual panels.
Rind
Colour, mottle coverage, pattern scale and contrast, fine variation, sheen and relief.
Stem
Length, width, bend and curl, plus a separate appearance variant for grain and dryness.
Wall
Crown, side and base thickness, which determine the cavity and the flesh available to cut or shave.

A seed is a number that makes a procedural pattern repeatable. The rind’s patternSeed has 4,096 possible values. Tap the pumpkin in Colour mode to try another mottle pattern without changing the shape. Coverage, scale and contrast stay under separate controls.

The stem has four saved appearance variants, each pairing a grain seed with a dryness setting. Changing the rind pattern leaves it alone. A body-only edit also merges just the fields that changed, retaining the chosen colours, mottle seed and stem variant. Without that separation, widening a blue-grey pumpkin could accidentally return it to a shaping tool’s default orange. Seeds repeat the small details; explicit shape controls decide the silhouette.

A few fields from the blue-grey pumpkin opened in the current app:

{
  "version": 3,
  "height": 0.9,
  "ribCount": 10,
  "stemWidth": 1.8,
  "stemVariant": 3,
  "patternSeed": 12
}

The full link carries every recipe field. Open this saved recipe in the app

Back to contents
02 / Direct manipulation

Make the shape
answer to a gesture.

A small drag should make a clear change to the silhouette.

The current app’s Customize view, with a blue-grey pumpkin, on-object shape grips and the Shape, Ribs, Stem, Colour, Wall and Turn tools.
Current live app: the chosen pumpkin enters Customize with its recipe intact. Body, ribs, stem, colour and wall thickness share the same object. View full size

Change the pumpkin shape

100% height · 100% width · 8 ribs.
Shape controls

100% height · 100% width · 8 ribs.

Front view; some ribs are hidden around the back. In the app, the recipe also rebuilds the rind, flesh and cavity.

Pull, stretch, widen, lean or flatten the pumpkin and watch the shape respond. Height, fullness, bulges and ribs become handles on the object.

The inside follows the same recipe. A volume-preserving height edit compensates in width, and a broader body still needs a usable crown and cavity.

The fullness ring moves up and down the body. Pull it out for a bulge or push it in for a waist. Flatten adds up to three local flats. Each edit rebuilds from the recipe, avoiding a pile of accumulated mesh changes. We freeze the shape before carving; changing it later would mean rebuilding and replaying the cuts.

Stem shape / A separate set of controls

A stem gives the pumpkin its character.

Put a short, thick handle on a pumpkin, then try a long hook. It changes the character of the whole thing. Grow, Width, Bend and Curl control length, thickness, overall lean and the turn near the tip. A Curl drag should not quietly make the stem longer or thinner to fit.

We use a cross-section sweep: a ribbed profile travels along a guide curve. Carrying its orientation along the curve keeps the flutes from twisting unexpectedly. Broad pigment, lengthwise grain and surface relief distinguish the stem from the waxier rind.

Orange pumpkin with a short ribbed stem leaning to one side, before an upper curl is added.
Bend alone. The earlier guide leans, but its tip keeps rising. Same body, material and camera as the curl test. View full size ↗
The same pumpkin and stem with a hook near the top, turning the cut end downward.
Upper curl · study 124. One Curl edit turns the tip down while holding length, width, bend and the root. A short, thick stem can refuse a tight curl until its dimensions are explicitly changed. View full size ↗

Where the stem meets the lobes.

The join took its own work. Unequal, tapered roots spread across the crown and sample the actual rind triangles. Change the body width or lobes and the attachment fits itself to the new surface.

Body and stem share the lobes’ angular layout. Stem flutes line up with selected crests, with smaller ridges continuing through the join. We designed that growth pattern for this pumpkin family; it is not a botanical rule.

An early rounded collar became a flatter, irregular root. Later controls keep the chosen stem width during body edits and flag combinations that exceed their bounds. The maker gets to choose a different dimension instead of having it changed for them.

An above view of the stem study shows unequal tapered root extensions following the pumpkin’s orange crown and lobes.
Root attachment · study 25. The base follows the lobe layout and settles onto the measured rind. This is a surface attachment; a watertight stem-and-body union was not established by this study. View full size ↗
Back to contents
03 / Textures & shaders

Procedural textures
and shaders.

Color, roughness and fine relief each do a different job on the rind.

Complete material

Diffuse contribution

Specular contribution

One form, three display views: complete material, diffuse and specular. They separate pigment and form from reflections. Compare all four shapes

Broad pigment shifts, long mottles, flecks and wax variation work at different scales. Fine relief changes the shading normal. The ribs themselves are geometry, so they cast real shadows.

We sample a fixed reference position, restPosition, to keep the texture aligned when a carved piece moves. Surviving faces retain their texture data; new walls get their own flesh material.

Tiny details fade as they get smaller than a screen pixel, reducing shimmer. We build these node shaders in Three.js Shading Language and tune their values for this pumpkin family.

Paint keeps the colour choices editable.

Hue, Strength and Light mix custom paint colors. Colors you use become a reusable palette. A stroke saves its color, brush radius and path on the surface, so replay can restore the marks without depending on a baked image.

Gold paint exposed a lighting problem. Treating it as strongly metallic made it too dark under a lantern in a scene without an environment map. More diffuse color and a smoother surface kept the warmth while letting highlights catch the paint.

Fill handles the big regions. Hold and drag to change how closely nearby colors must match. On bare rind, fill slips beneath existing lines with a small overlap at their soft edges. On paint, it recolors the connected region.

Comparing raw color bytes confused black with dark navy. We moved the comparison to OKLab, where distances better reflect visible differences. The saved edit records the chosen region for undo, replay and sharing. Liner and Fine also taper their ends; closed outlines need to stay closed so fill cannot escape through a thin tip.

Colour

Pigment, mottles and flecks

Surface response

Wax, roughness and fine normals

Form

Actual ribs and the light falling on them

Small study / Painting with the tools

Ask an agent to paint Starry Night.

We asked an agent to paint a simplified version of Van Gogh’s The Starry Night using the app’s real touch controls. The navy sky, curling blues, tiny stars and dark cypress gave the tools plenty to do. Image-guided planning became paint, erasing, scraping and Glow, with the operations recorded for replay.

The first pass used 2,379 strokes. Painting the whole sky with lines made the missing Fill tool hard to ignore. Later plans used outlines and fills, saving small strokes for the swirls and village. Then fills escaped through tapered joins or confused black with navy. Each failure gave us a specific tool fix.

The picture also needed more than six craft paints: several blues, pale yellow and near-black green. Custom mixes and recently used colors made that palette reusable. Fine lines wanted a Liner brush and tapered ends; stars wanted a smaller, softer dab than Dots. Scraping and Glow tested whether the marks still worked with the candle lit.

This was a planned exercise with image-assisted preparation and scripted input. It helped us find awkward tools and missing controls by trying to make something with them. The improvements work for a person painting their own design too.

Recorded Starry Night pumpkin study in Decorate: blue swirls, a dark cypress, village and pale stars painted on orange rind.
Build the picture. Recorded painting study: a custom palette, filled regions and detailed strokes. The stepped outlines show this version’s resolution limits.
The same Starry Night study under candlelight: stars and moon glow green-white and a scraped line around the cypress transmits warm light.
Test it in the dark. Glow stars and a scraped cypress outline combine painting with removal and lighting. These captures preserve the earlier study, rather than the current interface.

The saved drawing plan includes this palette. Each colour remains a choice the maker can change.

NavyBlueSky bluePale bluePale yellowYellowGrey-greenDark greenNear-black
Back to contents
04 / Scooping seeds & pulp

Wet fibres
should not act like rubber.

We wanted a scoop to gather a connected mess: peel it from the wall, carry the seeds, then let it slump. These images come from the earlier scoop study; that simulation is not a tool in the current pumpkin app.

A cutaway pumpkin reveals the cavity, wall fibres, loose seeds and a clump held at the scoop.
Interior-lab cutaway, opened for inspection: scoop, wall attachments and pulp. This is a diagnostic opening. View full size
Close view of the held scoop clump with seeds, fine strands and surrounding cavity material.
Held clump: seeds, pulp and strands move within the wall and tool constraints. This still records lab appearance, not motion quality or pinned solver settings. View full size

Simulating every visible fiber would cost too much. A smaller set of connected guide particles carries the motion. Distance and bending constraints give it structure; breakable attachments hold it to the wall. Many visible fibers follow those guides.

The scoop studies use a custom XPBD-style constraint solver with small substeps. Connections can yield, bend and tear; damping helps the clump settle. XPBD and Small Steps in Physics Simulation supply the established methods underneath that behavior.

The visible fibres have to tear too.

In the earlier scoop study, breaking a simulated connection was not enough if the visible tube still stretched across the gap. A broken guide became two fibre ends. Thin membrane strips followed pairs of neighbouring guides and folded away when those strands broke or pulled apart. This gave the fibres a web without simulating a separate cloth surface.

A separate Rapier 0.21 comparison tested native soft bodies and rigid seeds. We did not keep that engine in the scoop lab; the studies shown here use the custom solver.

In that study, a fast gesture still had to respect the cavity and opening. Gathering pulp and shaving the solid wall were separate operations, with wall removal requiring its own geometry and thickness checks.

Simulate

Connected guides, compliant constraints and breakable attachments

Render

Clumped fibres and seed placements following the guides

Constrain

Keep the scoop and pulp consistent with the current cavity and opening

Back to contents
05 / Carving & shaving

A drawn loop
has to become a solid cut.

Drawing an outline is only the start. A piece needs a cut wall, a little clearance and a way out of the pumpkin.

Give the piece a way out

Piece moving outward. The rear opening is 83% of the front width.
Cut controls

Piece moving outward. The rear opening is 83% of the front width.

Section through a flat wall. The orange edge is skin; yellow is flesh. The app checks the actual curved shell and removable piece.

The checked outline becomes a three-dimensional cutting tool. Manifold subtracts it from the shell, then intersects a slightly smaller version with that same shell to make the matching plug and leave a blade-width gap.

Draft is the inward cut angle; kerf is the gap left by the blade. Both affect whether the plug can leave. We check overlap at five points along its pull path. That catches trapped pieces, though it cannot prove clearance between every sampled position.

The next cut works on the shell left by the last. Existing faces keep their material coordinates. New walls inherit skin fraction, flesh depth, thickness and cut direction from the paired surfaces.

Cutting and pulling a piece out are separate undo steps. Undo first seats the piece, then restores the wall. Mirrored pieces share a cut but can be removed separately. If validation fails at display precision, we leave the pumpkin and its history as they were.

The studies below test the knife-cut finish, where mirrored cuts can go, how a pupil stays attached and what causes repeated corner fins. The images below are recorded lab results.

New triangles need more than a position.

A cut has to preserve both its wall geometry and the data that tells skin from flesh. Making clean pumpkin cuts follows the cutter, inherited material values and seams through the solid operation.

Back to contents

A tiny slip should not ruin an eye.

To carve an eye, draw around the piece you want to remove. On my phone, the line looked finished, but a tiny curl stopped me moving it or making the cut. I saw one eye; the tool saw an extra loop.

A finger covers the place where the line needs to meet. Small shapes make that last movement especially fiddly. A mouse, trackpad or unsteady stylus can leave the same gaps and curls.

One eye, one closed outline.

Choose a slip below. Compare the line you drew with the outline the tool keeps.

Your line

Side-by-side views of a drawn eye outline and the result of the app’s cleanup. Separate examples show a small gap, an overrun, a tiny loop and a large crossing. — Your line

You stopped just short of the start.

After cleanupClosed outline

Side-by-side views of a drawn eye outline and the result of the app’s cleanup. Separate examples show a small gap, an overrun, a tiny loop and a large crossing. — After cleanup

A short join closes the gap.

Change the stroke
Adjust the example

The outline is closed. Cutting is still a separate step.

This checks the drawing. The pumpkin’s shape and wall thickness still need their own cut checks.

See the closing-gap rule
function closingGap(points) {
  let length = 0;
  for (let i = 1; i < points.length; i++) {
    length += Math.hypot(
      points[i][0] - points[i - 1][0],
      points[i][1] - points[i - 1][1]
    );
  }
  return Math.max(20, Math.min(60, 0.15 * length));
}

Synthetic strokes run through the app’s actual stabiliser and cleanup. The gap is 15% of the drawn path, clamped to 20–60 diagram pixels. A crossing near the start can trim an overrun; a loop enclosing less than 5% of the larger region can be dropped. Retained points do not move. This short sample only shows the gap calculation.

The tool now helps with near misses: it joins a small gap, trims a line that runs past its start and drops tiny accidental loops. A large crossing stays for you to redraw. Cutting remains a separate action, and Undo brings back the original line.

How the cleanup works, and what we tested

The cutter needs one closed outline that doesn’t cross itself. A tiny gap leaves it open; a stray loop adds a crossing, even if it is barely visible. We wanted to forgive those slips without rounding away the shape you meant to draw. Stop near the start and the line joins back to it. The gap grows with the length of the stroke: 15%, with a 20–60 pixel limit. Run past the start and cross back over the beginning, and the extra lead-in and tail are trimmed. While you draw, the start marker grows and the possible join appears.

Small wobbles are handled by the existing stroke stabiliser. After release, a separate pass removes tiny loops where the line crosses itself. It compares the areas on either side of a crossing and drops the smaller loop only when it is under 5% of the larger one. It removes samples rather than rounding the whole shape, so teeth, points and deliberate notches keep their character. A substantial crossing still needs redrawing.

In a repeatable test, 144 simulated finger strokes went from 72 clean closed loops to 144 with the new rules. Teeth, a star, a crescent, a triangle eye and a wavy mouth were unchanged in the five deliberate-shape tests. That is a useful check of these examples, not a promise that every drawing will close or cut. The carving engine still checks the outline against the pumpkin.

Drawing tools already use these ideas: Illustrator can close nearby endpoints, and Krita documents stroke stabilisation. Our choices are the size of that closing gap and how small a stray loop must be before we remove it.

Back to contents
Small study / Hand-cut finish · 118

Make it look cut with a knife.

Perfectly regular edges looked machined. We added controlled edge variation, directional knife marks and short fibers attached to the wall. The aim was a sliced surface with small irregularities that still preserved the intended expression.

Edge variation changes the cutter before the solid operation, so the opening and plug still match. A saved seed repeats it when cuts are edited and replayed. Knife marks give the exposed wall a direction; short attached pieces of geometry supply the fibers.

Angle, Edge and Fibres stay separate, with a reversible preview. Angle also changes the opening at the back: a steep inward cut can leave a blind recess behind an apparently open front.

Close view of a triangular cut with an uneven outer boundary and visible knife-like variation along its yellow flesh walls.
30% edge variation. The actual opening changes under the same camera and light. Repeated inner ridges remain a mesh defect; they are not intentional knife marks. The matched corner study addresses that separate problem. View full size ↗

The studies also showed what still needed work. Fibers could bunch, facets broke up the walls and some material stayed too dark under the lamp. Those defects remain visible in the captures.

Small study / Mirrored outlines · 104

A mirror has to find the actual surface.

Mirroring reflects the outline across a vertical plane, then finds the rind on the other side. Each path follows its own ribs and depth. If the reflected path falls off the face, the app refuses it.

Our first test looked ready on the solid shoulder, but there was no hollow wall behind it. Checking the inner mesh caught that before submission. Move the outline down onto the cavity and it becomes cuttable. The app samples cavity and cut direction for the preview; the final solid operation checks the result.

Two red mirrored eye outlines high on the pumpkin, where the solid shoulder prevents a through cut.
Over the shoulder. Skin is visible; hollow wall is missing. The preview warns and disables Cut. View full size ↗
The same two eye outlines moved lower on the pumpkin, with gold and teal strokes over hollow wall.
Moved onto hollow wall. One downward move restores readiness; the worker accepts two pieces. Same outline, size and camera, with a horizontal pull axis. View full size ↗
Small study / Pupil & bridge · 114

Leave a pupil, keep a bridge.

A ring around an eye can leave its pupil floating. We discard tiny chips at the cutting resolution and isolated cut waste from the blade gap. The remaining pumpkin must form one connected solid, so a detached pupil needs a bridge. An enclosed empty cavity is a void, so it does not count as a loose piece.

The C-shaped eye below leaves a bridge above the pupil. We kept the front outline, pumpkin and camera fixed and tried three inward angles. All stayed connected. A steeper angle left more support behind the skin but less opening at the back.

A shallow C-shaped eye cut leaves an orange pupil attached by a narrow bridge at the top, with an opening around it.
Shallow inward cut. A visible top bridge holds the pupil. Front outline and camera match the steeper test. View full size ↗
The same eye with a steeper inward cut, exposing more flesh and narrowing the dark rear opening around the pupil.
Steeper inward cut. More flesh supports the pupil; one rear gap closes while others stay open. The lab’s faceted flesh remains visible. View full size ↗

One rear gap shrank from 0.170 to 0.089 to zero in scene units. Staying connected does not tell us how strong the bridge is or how much light passes through it. In a separate solid-block test, a ring cut was refused; adding a bridge kept the result connected.

Trace cleanup fills internal holes while retaining outer concavities, but the finished solid still needs its own connectivity check. We considered an explicit option for floating islands. It is not implemented; loose pieces would need their own objects and physics.

Fix the corner in the geometry.

Repeated fins down a triangular corner were a geometry defect. The matched cutter comparison shows how explicit corner edges removed those wedges, with the historical before-and-after captures.

Smooth walls, sharp corners.

A rounded wall should shade smoothly while a knife corner stays sharp. The cutter article separates crease shading from geometry repair; smoothing normals cannot remove a wedge in the mesh.

Scraping has a different job: remove some material and leave a wall behind. We built a flat slab study to work on depth, layers and light.

Scraping pumpkins.

A shallow scrape can leave a wall thin enough to glow. Our slab borrows an idea from digital snow: remember the surface each tool pass leaves behind. An even-depth stop keeps crossing strokes from digging a pit.

Read the scraping article: surface depth, tools and backlight ↗

Why can one method leave a roof over a hollow while another turns it into a trench? Meshes, heightfields and volumes compares the surface models with illustrations.

Tap the image to try scraping here. This flat-wall study exposes layers and tests backlight; cyan shapes are provisional removed-material indicators. View still full size · Open standalone lab
An etched shape in the slab under simulated backlight; thinner flesh glows more brightly than the surrounding skin.
Slab backlight: thin flesh brightens; intact skin stays dark. Comb-like edges show grid resolution. The authored glow remains separate lab evidence. View full size

The flat-wall lab isolates removal and light. The current pumpkin app adds Loop, V gouge and Flat heads, repeated passes and a Glow handle tied to remaining wall thickness. The scraping article follows that move from slab to curved pumpkin.

Back to contents
06 / Lighting the result

The thickness
becomes the picture.

Put the same light behind a hole, a thin scrape and a thick wall. They need to look different.

A backlight test with two rows of flesh samples at four depths and a separate open hole.
Transmission lab: each column holds depth constant, with skin above and removed below. White is an open hole. The response is authored, not optically calibrated. View full size
An internally lit pumpkin with two shaved patches: the deeper shave on the left glows more brightly than the shallower patch on the right.
Earlier lantern test: a deeper shave on the left glows more than the skin-only patch on the right. Stepped edges reveal this version’s per-vertex thickness limit. View full size

A scrape should not behave like a glowing decal. Its light follows the primary lantern’s colour, intensity and distance, then loses energy through the remaining wall. We use colour-dependent exponential attenuation from the Beer–Lambert family: a longer path absorbs more light. Thin patches brighten; thick ones darken and shift colour.

A through-cut opens into the cavity. A scrape leaves a translucent wall, with any remaining skin blocking more light. Cut walls and scrapes follow the primary source through different local estimates of the light’s path.

The edge needs to catch light too.

A bright hole beside completely dark skin can look pasted on. We use the actual cut outlines to fade a narrow band of light into the surrounding rind. A small distance map records how far each point lies from an opening. Nearby cuts can brighten the strip between them; the cut wall gets a matching contribution so a dark seam does not split the two surfaces.

That band follows the primary light’s colour and intensity and shares the cut wall’s absorption settings. Its distance is measured in a projection of the outline, rather than through the tissue. Steep ribs can widen it. The reach and strength remain art direction choices, within this local approximation.

An opening changes the light inside.

The cavity also needs light that has bounced off its lining. A flat ambient fill would stay the same after carving. We estimate the repeated bounces from source power, lining reflectance, surface area and opening area. Missing cavity faces count as openings; a seated lid or plug puts its own faces back, while the blade gap can still leak light.

The model borrows the enclosure principle in Labsphere’s integrating-sphere guide. More opening area means less light retained for repeated bounces. We treat that bounce as uniform inside this irregular pumpkin and keep direct lighting separate. It is a useful approximation, rather than a ray traced account of every reflection.

Let purple stay purple.

Orange pumpkin tissue changes the colour of transmitted light. A purple LED can come through pink, which follows the absorption model but may lose the look someone chose. The LED’s True colour control gives that choice back.

We first calculate the light left after absorption, then move its hue toward the source colour while preserving its calculated brightness before display tone mapping. The choice is saved with the light and reversible with Undo. Coloured LEDs offer this control; candles, tea lights and the warm-white LED keep the material’s tint.

Light the pumpkin in its setting.

Extra tea lights created a less obvious problem: without their own shadows, they could light the table through the pumpkin’s floor. Giving each one a cube shadow would mean six shadow views per light. We use one shadow-casting point light for the walls and openings, carrying the group’s combined power. Extra lights have a short, measured reach to fill the floor around their flames.

The shadow map updates when geometry or placement changes. Flickering intensity can reuse it. This keeps the lighting responsive to edits without rendering a separate shadow for every flame; it is a deliberate multi-light approximation.

The setting contributes light too. The porch lamp stays out of frame but lights the boards. In the garden, the lantern lights individual grass samples alongside a cooler moon rim. That replaced a painted warm patch on the ground; the grass now responds to the lantern’s position and level.

These local transmission and cavity approximations make depth readable in real time. They stop short of full subsurface scattering or ray-traced global illumination.

Try the small wall-thickness explorer to see depth become light. It holds the light fixed and simplifies the material; the curved pumpkin also needs source placement, cut geometry and the cavity model above.

Back to contents
07 / Scene composition

A rich place,
built around the view.

We wanted rich outdoor views without building every leaf in 3D.

The kitchen is our clearest 2.5D example. The table, cabinets, walls and window frame are modeled. Beyond the window, a garden image sits on three curved layers. Nearby foliage shifts more than the distant garden as the camera turns, giving us parallax without modeling it all.

This uses the matte-painting technique of projecting images onto cards or simple geometry. We project from a reference camera onto curved surfaces at different distances and soften the farther layers. Image brightness provides a rough foliage-depth guide. We are arranging an image in depth, rather than reconstructing scenery hidden behind it.

Current kitchen scene from the main carving angle: an orange pumpkin on newspapers, sage cabinets and a window onto a garden.
The main carving view. Real room geometry frames layered garden imagery beyond the window. Native app capture with controls hidden.
The same kitchen after a sideways camera turn: the window shifts left and a kettle and framed painting enter the view.
Turn within the supported range. The room, window opening and outdoor layers shift relative to the pumpkin. The image is not a fixed screen background.

The camera range is part of the scene.

Turn too far and a card edge, stretched picture or unbuilt space gives the setup away. The camera range is part of the composition. In the kitchen, horizontal turns stay about 34° either side of the main view.

Looking down at the pumpkin is useful for carving, so we built a real floor, walls and table structure for that view. Background cards extend below their images to hide the lower edges. Window reveals and wall pictures also needed proper perspective; they helped push the room beyond its earlier all-image setup.

We put geometry where contact, overlap and changing perspective need it, and use imagery for the distant richness. Lighting has to belong to the same place: the kitchen’s shadow-casting key is derived from a position in the modeled window, so moving that window also moves the source of the pumpkin’s shadow. A separate, unshadowed fill models the front ribs without requiring another full shadow. Backdrop, ground, lights, props, motion and camera limits live together in the scene manifest, where we can check the supported views as one composition.

Back to contents
08 / A second use for the tools

From pumpkin
to candle.

The pumpkin’s shape controls, cutters and light studies gave us a head start on candles.

Tap the image to shape, carve and burn a candle here. This earlier standalone study includes six wax types, wick choices and a hollow luminary. The newer maker is also part of Display in the pumpkin app. Open standalone maker

The candle maker now opens from Display’s Candles menu. Done adds the candle beside the pumpkin as one undoable edit; its editable recipe travels with the shared pumpkin.

The body reuses the pumpkin’s shape controls; the wick borrows its stem curve. Carving removes material from a shared solid model. Burning adds different problems: a moving pool, a standing shell and wax that runs, settles on the holder and freezes. Wick size and draught affect the burn, while the shader keeps the rim bright and the drips readable.

Read the candle maker article: shaping, wax, volume flames and recipes ↗

Back to contents
09 / Shader & GPU preparation

Prepare the work
before the next tap.

The scene could run smoothly and still pause on the first tap of a tool. We had to look at what happened before its first frame.

During the opening

Prepare drawing routines while the opening image holds the view.

Between gestures

Upload images early and build in small batches. Let gestures interrupt optional preparation.

Before the handoff

Try the next view’s real materials, lights and passes. Having its files downloaded is only part of being ready.

Warm the view you will actually draw.

A shader describes a surface, but the browser still has work to do before drawing it: build the material graph, upload textures and prepare GPU pipelines. Leave that until the first tap and the person waits for all of it.

We draw upcoming objects ahead through their actual shadows, contact shadows and depth-of-field passes. Compiling a material alone missed some combinations. Even a change from the opening’s lights and fog to the carving scene could trigger another shader at the handoff.

Warm-up borrows the destination’s rendering state, then restores the visible scene. Cached pass images need restoring too. One early version briefly showed the table because the next frame reused a warm-up result. Hidden preparation still has to leave the visible frame alone.

Asynchronous work still has a frame cost.

WebGPU lets us request asynchronous pipeline creation, so the drawing loop need not wait for each program. Building the shader graph still takes JavaScript time, though. Preparing a whole hidden pumpkin at once could still make a long frame.

The scheduler usually prepares one mesh per frame. It separates image uploads, yields optional work during gestures and uses bigger batches only in selected waiting states. The held opening image gives us another place to prepare before motion begins.

Reuse the program. Change its inputs.

Rind and candle materials share programs and vary their inputs. Keeping the scraping material stable avoids a fresh program after every edit. Flame quality changes through a uniform, an input to the existing shader. Detailed candle geometry gets its own small work slices.

Preparing everything would trade pauses for memory pressure. A shared queue favors likely next steps and estimates the memory it holds. It can release unused objects; changing a recipe discards preparation for the old shape. The budget covers that queue’s resources, not the entire tab.

Measure the first use, too.

We record the time from a tap to the first moving frame and count long frames during the transition. Cold visits matter: the driver cache can make a second visit look good while a first visitor still waits. Drawing cost, preparation cost and scheduling need separate checks.

This is ongoing work. Desktop Chromium traces help us find expensive stages; Safari and iPhone still need their own measurements. We want the current gesture to stay responsive while the next tool gets ready.

Technical background: Three.js documents material precompilation. The app’s additional work covers its own render passes, scheduling and scene restoration. The app lifecycle article follows the profiling, loading and cleanup work, then asks what another engine could take over.

Back to contents
One object / Several systems

The difficult part
is making them agree.

A shape tool, a cutter and a shader can each work well on their own and still disagree about the pumpkin.

The recipe, material coordinates, cavity queries and undo history connect them. Workers handle expensive carving and scraping, then return their changes to the same editable object.

A link can carry the design.

Sharing carries the recipe, lid and cut outlines, removed pieces, paint strokes, light and display setting. Another browser rebuilds from those choices. Heavy meshes and the live simulation stay local.

We support a short server-backed link and a compressed, self-contained fallback that puts its data after the URL’s #. Opening either creates a visiting draft, leaving your own saved pumpkin in place.

Explicit versions and upgrade steps let later engines replay the outlines against the recipe. The design stays editable, though future rendering changes may alter its pixels.

The captures span several stages of the project. We’re continuing with clearer motion sequences, broader geometry tests and touch and browser testing. The tools should handle the mechanics so the maker can concentrate on the pumpkin and its expression.

Try making a pumpkin
Back to contents