Phylomorph design review · 5 December 2026 · revised after orin (verdict: accreting, fixes below taken)

Every look the explorations had comes from six mechanisms reading one ink buffer

The plant study and the body explorer each drew with code of their own: a switch on what kind of thing this is (leaf, vein, bark, petal; skin, bone, garment). Every branch of those switches turns out to be one of a few general mechanisms reading a few general values. Build those once, in the core, and each look works on every thing: lumpy ink lit like the body, a leaf in 3-D, veins in skin, a moon that is a lit sphere.

The bar: every capability below, at the originals' full sophistication. A capability is not ported until its original's picture is matched beside it, in every style, by day and by night.

Fill dropsmerge 1: mercury strokespath, profile,cross-section meshtriangles, normals ink buffer coverage · edgethicknessnormal · depthalong · across · restpart · back depthper pixel lightfront · through · behind edgessilhouette · contour · crease · hem depth's cueshaze · focus · softness Movesbones turn drops by a share of their rotation; air, breath and pose move bones Looksa style is weights on material, light and edges; a pattern is terms: source, curve, mask, axis

The rule: port every look, generalize every mechanism

This is the direction your last messages took (veins on a body, glowing meridians, translucent droplets, vessels inside soft tissue, lumpy ink lit like the body, a 3-D leaf), said as rules that can be applied to anything Phylomorph draws.

  1. Name the phenomenon, not the object. A vein is not a feature; it is a stroke on its leaf, with its own colours, adding thickness. A leaf's underside is not a flag; it is its back face. Bark is not a mode; it is a round cross-section with a pattern along it.
  2. A mechanism reads values, never kinds. A branch on what thing this is in a shader or a renderer is a defect. A branch on a value (thickness, normal, depth, distance to the edge) is the design.
  3. Every filler gives every value. Drops, strokes and meshes each write coverage, edge, thickness, normal, depth, place along and across, rest position, part. Then every mechanism works on every thing without being told about it.
  4. Every axis on every thing. A material axis, a light, an edge or a motion that works on one kind and not the others is a hole in the table, and the table is a test.
  5. The originals are the reference pictures. No capability is dropped or approximated. A reference rig renders the originals at a fixed time, sun and number in every style by day and by night, and diffs the port against them. Matched means the diff says so, not the eye alone.
  6. A new look grows the kernel by one general axis, or none. When a new exploration (water, fire, fabric, a flower that is an interface) needs something, find which mechanism it is; if none, add one general axis, reviewed by orin, that every kind gets.

The kernel

Six mechanisms and one buffer. Words already decided keep their meanings (thing, whole, place, drop, stroke, profile, material, number, frame, spring, depth's cues). orin reviewed the first draft; its corrections are folded in, and what it found the draft would have lost is now in the inventory.

1. Fill: drops, strokes, mesh

Three ways to put ink in the buffer, all of them drops underneath, so all can divide and gather.

  • Drops sum as the field: mercury at merge: 1.
  • Strokes: drops along a path with a profile (the half-width along it; two sides allowed) and a new cross-section: how the surface rounds across it. Flat is a blade, round a stem or a tube, cupped a leaf; the field's own bulge is the default. It shapes the hard field's rise inward, so the normal comes from its slope, as ink's already does.
  • A stroke's path may be 3-D, with an orientation along it: twist, curl and a leaf turning over are its orientation turning, never thinner than the study's 0.12 of its width (a leaf is never edge-on). What shows when it turns is its back face, a material axis: the study's paler underside and its 1.15× light through.
  • Mesh: a thing's tris (it already has them, for places) drawn as triangles, with a normal per drop. The body is drops at its vertices, so it too divides.

2. The ink buffer holds the surface

Today it holds, per pixel: the field, colour, weight, warmth and the state's brightness and halo. It grows to hold what every mechanism reads:

  • coverage and distance to the edge (hard or merged)
  • thickness
  • normal and depth (written by mesh and 3-D strokes; derived from slope for drops)
  • place along and across (a stroke's s and its signed distance; a mesh's place; a drop's own angle and share)
  • rest position (the explorer's fields are keyed to the body at rest)
  • part: which thing, which garment layer
  • back-face depth, for a mesh's own thickness (the explorer's through-light)

Laid out once, for every writer, before any light is built. Cost: three or four more render targets; the bench decides which share.

3. Bones and air move things

Things nest today, each part in its whole. New: bones, each a pivot and a rotation; a drop turns about a bone by a share of its rotation (the study's continuous bend; the body's skinning is the same form with full shares, after a probe of the blending error). A plant's spine is bones; the skeleton is bones. Every motion is a mover on bones:

  • air, a scene input like the clock: one-way, breath, gusts; it crosses the frame, windward first, near after far
  • a bone's answer is a weighted sum of springs (the core's spring, given a period and damping: a blade 1.3 s, a seed head 2.7 s, lightly damped) plus its own flutter, less for far things
  • pose for the body; breath for everything

The CPU poses by the same sums as the GPU, so places and hits agree with the picture.

4. Light reads the surface

Lights are things (today). On a surface each light gives, by the values alone:

  • front: normal toward the light, wrapped soft (lit)
  • rim: thin tissue at the edge facing the light
  • through: one law, light let through = exp(−thickness / scale) × translucency × tint. The explorer uses it as is; the study's per-vertex amounts are converted to thickness where strokes are written, and a probe shows the fit within 1/255. Its depth and night factors move to depth's cues and the palette.
  • behind: the scene behind at coarse detail (the study's veil: low resolution, the sky blurred, no disc, veins or glints), seen through the thickness; drawn between bands of depth. The cheap path is the size rule's coarsest step, not a second path.
  • shadow: one walk toward the light through depth, the ground in it, so the explorer's key shadow, its occlusion ring and ink's ambient shadow are one
  • glow is light, kept apart from opacity: large lights (sun, moon) computed directly, small glowing shapes (a vein, a meridian) gathered by blur
  • one rim law, decided before building; one falloff, the study's two (sharp sky glow, smooth tissue glow) as its curve
  • some light is added (the seed heads' glints), so the compositing rule is an axis: over, added, least ink over the ground, see-through

5. Material and pattern

The axes stay: colour, opacity, outline, translucency, glow, lit, merge, tint. One addition: pattern, a list of terms, each source → curve → mask → axis by an amount. A source is noise keyed by the number, a coordinate (along, across, distance to the edge, rest position) or data (the moon's seas, twenty discs and Tycho); the curve is any smooth curve (a Gaussian band for a crease, a step for a margin); the mask is itself a pattern (lichen only on old wood, away from the edge); the axis is colour, thickness or normal. "Fanned from the base" is a coordinate, not a case. Closed under itself, so not a table.

Veins are strokes on their leaf, with their own material: pale in front light, ink lit from behind, opacity rising with the light through, as the study draws them; and they add thickness. Meridians and vessels are the same, at places on skin, or inside it in 3-D.

6. Edges and air

Edges are one detector on the buffer: a step in coverage (silhouette), in depth (contour), in normal (crease), in part or layer (hem, seam). A style weights each. Today's outline is the silhouette weight; the study keeps one: bark's faint dark edge.

Depth's cues (the decided word) are one function of depth for everything: haze toward the horizon, softness, and focus (the study: sharpest near depth 0.85, the very nearest soft again).

The size rule sets detail by size on screen, everywhere: vein levels, the moon's seas from 6 px, a bone's outline from 4–10 px, creases from 30–60 px, the veil's coarseness.

A style is weights on material, light and edges plus its compositing rule. The explorer's Silhouette, Contour, Transparent, Ink and Glow and the core's styles are the same table.

Generalizations: special cases that disappear

In the originalsWasBecomes
Study: kind 0–6 in the fragment shadera switch on leaf, vein, bark, rim dot, petalvalues: thickness, cross-section, pattern, a vein's own material, outline, the compositing rule; no kinds
Study: leaf turning overthe vertex shader narrows the stroke through zero and sets an under flaga 3-D stroke's orientation turning, never below 0.12 of its width; the underside is its back face, a material axis
Study: bark lit round, faint dark edgebark-only codea round cross-section lit by the sun, plus its outline (the faint fixed edge)
Study: veins dark backlit, pale in frontvein kinds 2 and 3strokes with their own material (pale in front, ink behind), adding thickness
Study: petal striation, crease, marginpetal-only noisepattern terms: noise, a band across, a margin step
Study: rim on thin edgesa uniform per kindlight's rim term on every surface
Study: the veil, laid again between three depth bandsa framebuffer the leaf shader sampleslight from behind: the scene at coarse detail, by bands of depth
Study: moon phase, terminator, earthshine, seasa 40-line moon shadera sphere lit from a direction given by the date's phase, hard terminator; rim and earthshine terms; seas a data pattern
Study: hills, sun disc, starsa painted backdropthings at depth: hills are strokes in haze, the sun a glowing drop, stars drops
Study: two bones a stroke, air springsper-stroke attributesbones turning drops by a share of their rotation; air a scene input; a bone's answer a sum of springs
Explorer: skinning (dual quaternions)explorer-onlybones, the same as the plants'
Explorer: contours, creases, hemsits own composite passthe edge detector, every thing
Explorer: key light and soft shadowa fixed light from above leftthe scene's sun (a style may hold it fixed); shadow by depth, every thing
Explorer: bones under skin, skin under clothespasses inked at a set strengthlight from behind through a translucent layer
Explorer: style switch (opaque, ink over ground, see-through, bones)a switch on the style numberthe compositing rule, one axis of a style
Study and explorer: three shadowsray walk, occlusion ring, ink's offset shadowone walk through depth with the ground in it
Explorer: feature strokes, meridiansribbons in screen spacestrokes at places on the mesh, carried by its bones
Core: mercury inklit by a slope guessthe same light as the body: front, rim, through, shadow
Core: light and glowtwo ways to give lightone: glow is light, kept apart from opacity; a pure light is a glowing drop no one sees

Every capability of the originals, and what carries it

The checklist for "no compromises". have works in the core today; part started; to build. Each row is done only beside its original's picture.

The plant study: light
CapabilityMechanismState
The plant study: forms, growth and air
CapabilityMechanismState
The plant study: sky, interface and machinery
CapabilityMechanismState
The body explorer
CapabilityMechanismState
New, from your last messages
CapabilityMechanismState

Kinds × mechanisms: the table that is the test

Each cell is a test that draws the kind with the mechanism and checks it against a reference picture. Today most of the table is empty; when it is full, rule 4 holds.

MechanismDropsStrokesMeshLights and sky

Language check

Order of work

Each step ends with the reference rig's diff, every style by day and night, the bench, and a merge. The hard edge and tint are already in.

  1. The reference rig (built: node scripts/reference.ts shoot, then diff). 55 shots, every one drawn twice and steady within one level: the study's hero, air, interface, grass and seedling views at day, dusk and night with the sun ahead and behind; the explorer's five styles by day and night, skin and bones, and its five palettes. About 2.7 minutes for all, seconds for one view with --only.
  2. The buffer laid out once for every writer: thickness, normal, depth, back-face depth, along/across, rest position, part. Pixel-identical at defaults.
  3. Decisions before light, each with a probe: the one through law (fit within 1/255), the one rim law, the one falloff, glow is light, the compositing rule.
  4. Light reads it. Front, rim, through, behind (the veil), the shadow walk. Gate: "Light through a leaf" matched.
  5. Cross-section, orientation and back face, pattern terms, veins. Then the study's plant rules ported verbatim into plants.ts, view by view, with numeric tests.
  6. Bones, air, springs, after the probe of bone blending at the study's largest bend. CPU and GPU pose by one sum. Gate: "Grown, in moving air" matched, leaves turning over included.
  7. Mesh and edges. The explorer's body in its five styles and six palettes, matched. Lumpy ink lit like the body falls out here; tested.
  8. The sky as things. Sun, moon with phase and seas, stars, hills, the night's light from the moon. Gate: the study's backdrops matched.
  9. Meridians, vessels. Vessel data needs an openly licensed model; candidates come to you first.

For Shawn

  1. The rule needs no new principle. orin points out the canon already says it (a keyword must not decide a type; axes are orthogonal). What makes it bite here is the reference rig and the kinds × mechanisms table as tests, and orin checking each new axis against every kind. The rules are saved for every Phylomorph session.
  2. Glow is light. Folding light into glow removes a word and a path, and changes every page that places a light. Recommendation: yes, decided in step 2, before light is built.
  3. The explorer's fixed key light. Recommendation: the body is lit by the scene's sun like everything else; the explorer's look is a style that holds the sun above left.