Drag across the slab, change the tool and try crossing an earlier stroke. Turn on backlight to see what the remaining wall lets through. Launch starts the 3D scene; Close releases it.
A surface that remembers.
We wanted each scrape to leave a real change. The next stroke should meet whatever the last one left behind, including the grooves where they cross.
Snow gave us a useful starting point. Sumner, O’Brien and Hodgins’ work on sand, mud and snow models ground changed by contact. Colin Barré-Brisebois’ deformable snow work for Batman: Arkham Origins accumulates tracks in height data and uses that data to change the material. We borrowed the memory: a new contact updates the already changed surface. Our tool computes a cutting floor for pumpkin flesh; it does not reproduce Batman’s rendering pipeline or simulate individual snow grains.
The slab stores one surface height at each point on a grid: a heightfield. At each column under the tool, we calculate the bottom of the tilted spoon. If that floor is below the current surface, we lower the column; if an earlier groove is already deeper, we leave it alone. The original height minus the new height gives removed depth. The new height above the back of the slab gives remaining wall. Those are two useful readings from one lasting change, rather than a painted groove laid over untouched geometry.
Crossing strokes should not dig a pit.
Our early strokes cut deeper wherever they overlapped. Good for digging, less useful when you want an evenly shaved patch for a lantern.
We kept both options. A per-pass cut starts from the surface the tool meets and can take more away on the next pass. An even-depth stop measures from the original surface. Set a 2 mm stop, for example, and two crossing strokes can widen the shaved area while both stop 2 mm below the original surface; the crossing does not become a 4 mm pit. A little authored tear texture breaks up that floor without letting the tool pass the stop.
Flat scraping and drawn-region shaves share that depth limit. The stop is applied at each touched column, rather than only at the tool’s centre. A tilted spoon has a lower lip away from its handle; clamping the handle alone can still let that lip dig too far. Width and profile decide the mark’s footprint, while the stop decides how much wall survives. A wider gesture should not quietly become a deeper cut.
Depth also tells the material what to show: orange skin, the pale layer underneath, then deeper material. We record the cut’s age and direction too, so a fresh scrape can look wet and fine marks can follow the tool.
The depth becomes the drawing.
The backlight reads the same thickness that the scraper changes. Intact skin stays dark; thin patches brighten. That lets you draw with light and shade while leaving some wall in place.
A thinner wall lets more light through.
Scrape the outside of the pumpkin without cutting through it. As the wall gets thinner, more of the light inside can shine through.
Wall left: 3.6mm
3.6mm remaining · 13.8% relative light through the deepest point.
A slice through one uniform pumpkin wall. The bright patch marks the scraped area. The light calculation is illustrative; the app also accounts for skin, curved geometry, color and the light’s position.
The rule behind this diagram
function transmit(wall, depth, light) {
// Depth and light use ratios: 100% is 1.
const remaining = wall * (1 - depth);
const glow = light * Math.exp(-0.55 * remaining);
return { remaining, glow };
} Exponential falloff makes an extra millimeter matter most when the wall is already thin. These values explain the model; they are not optical measurements of a pumpkin.
The diagram explains the idea; the launchable slab lets you try it. On the curved pumpkin, removal has to agree with the app’s own wall-thickness and point-light queries. The flat lab’s glow is useful for studying depth, but it is not a test of that whole system.
From the slab to the pumpkin.
We took three heads into the current pumpkin app. Loop leaves a soft groove, deepest in the middle. V gouge draws a narrower line. Flat leaves an even floor with straighter sides. All three use an ellipsoidal cutter, so even the gouge has a rounded floor.
Pressure ramps up and down at the ends of a stroke to avoid square-ended marks. Another pass takes it deeper. We chose that build-up for tool work on the pumpkin; the slab’s depth stop serves the different job of shaving an even patch.
Ribs revealed a problem the flat slab could not. Straight steps between pointer hits skipped the valleys and broke the stroke. Spacing the cutter along the curved surface fixed that path. We also check how much skin actually falls inside the blade: a 12 mm Flat head should not cut a much wider stripe down a valley.
Fine gives you a 5 mm head for smaller marks. Width and depth stay independent, so a thin line does not require a deep cut.
Tap a shaved patch to reveal its Glow handle. Drag for more light and the app removes more material from that patch’s strokes, up to the wall-depth limit. You are changing the wall, rather than painting brightness onto it. Undo brings the earlier depth back.
After rebuilding the surface, the app passes remaining wall, skin thickness and inner removal to the shader. The saved cut and the light need to describe the same patch.
On the pumpkin, changed depths are stored in tiles around the curved wall. The app rebuilds affected patches, moves their points along the local surface normals and clips their triangles against the shell left by earlier cuts. Imagine scraping across the edge of an eye: replacing the whole tile with a fresh grid would put skin back over part of the opening. Clipping retains the true hole. A later solid cut also consumes a prepared version of the changed wall, with shared edges refined on both neighbouring faces so the finer patch does not leave a crack. The three-dimensional grid remains a separate flat-lab comparison.
Choose what the surface can remember.
A scrape can push existing points, lower one height per column or change a volume and rebuild its surface. Meshes, heightfields and volumes gives each method room, with illustrated limits and the recorded comparison. The lab above keeps all three available to try.
Move the existing vertices.
Keeping the same triangle connections lets a deep groove stretch the faces. Follow the pushed-vertex test and the roughly 3.5-times worst edge stretch recorded in the slab.
Keep one height per column.
One height per column works for an open scrape, but cannot keep a roof over a hollow. See the heightfield illustration and why the side-entry test became a trench.
Build new triangles where they are needed.
A three-dimensional field can keep that hollow; marching cubes builds its visible boundary. Follow the volume method, including the difference between rebuilding small chunks and batching them for drawing.