Hair and fur in wind — sampleMany at every strand vertex

A groom is a few thousand strands, each a chain of 12 segments. Every segment is bent by the velocity sampled at its own position, at the current field time — the whole strand is walked through the field from root to tip, one field.sampleMany(pos, out, t) per segment layer across all strands at once. That is the difference between hair and a flag: the root barely moves, the middle leans, the tip whips, and the three disagree because they are reading three different places in one continuous field.

The thing a grid or a per-strand random phase cannot give you for free: neighbouring strands read nearby points of the same field, so they agree — and strands a head apart read far-apart points, so they do not. That is what a gust is. Drag gust size up and the whole head moves as one slab; drag it down and the groom breaks into fine independent twitching. scatter is the control: it gives each strand its own random offset into the field — the usual "every strand gets its own noise" shortcut — and you can watch the near-neighbour correlation collapse. Drag to orbit, scroll to zoom.

gust size is not the library's coherence parameter, and this page keeps the two apart on purpose. Gust size is the world scale the field is read at: sampling at p / L with |k| ∈ [1, 6.2] is the same field as sampling at p with |k| ∈ [1/L, 6.2/L], so that slider is the wavenumber band — which is what sets a correlation length. coherence locks the mode phases toward shared centres instead: it decides whether gusts sweep the groom as rigid fronts or dissolve where they stand, and over its whole range it moves the far correlation by about 0.25 → 0.26 — plainly visible in the motion, almost nothing in this measurement. Two knobs, two jobs; the receipt answers to the one that owns it.

helix-noise · sampleMany(pos, out, t) · THREE.LineSegments
—

The measured number. C(r) is the correlation between the field-driven tip displacements of two strands whose roots are r apart — the tip's offset from where it would hang under the mean wind alone, per unit strand length, correlated pairwise and normalised by Cauchy–Schwarz so it cannot exceed 1. The readout prints it at a near pair (r ≈ 0.06, about two strand spacings) and a far pair (r ≈ 0.85, opposite sides of the head) at the same time, and the inset plots the whole curve. On the head at the defaults it settles at 0.97 near and 0.25 far. Raise gust size to 3 and far climbs to about 0.77 — one gust now covers the whole head. Drop it to 0.25 and far falls to roughly 0.00 (it dips mildly negative on the way: two strands on opposite sides of one gust lean opposite ways) while near still holds 0.89. That fall-off is the field's correlation length, read off the hair. The fur patch is flatter and combed one way, so its strands agree further: 0.99 near and 0.65 far at the same settings.

Why the grey line is not zero, and why one frame is not the number. The dim curve is the same measurement with every strand's field lookup displaced by its own random offset — statistically independent samples, the "each strand gets its own noise" shortcut. It lands near 0.18 at close range rather than at 0, and that residue is the groom, not the field: two neighbouring strands share a root, a direction and a length, so their average response to any wind at all is the same. At far separation, where the geometry differs too, the control does fall to about 0.05. Read the teal curve against the grey one, not against zero. And note that a single frame is a single realisation of the field — instantaneously the far number swings by a few tenths as gusts drift across the groom — so what is printed is a 3.5-second running average, which is what an offline sweep over many field times converges to. It says settling… until that average has had time to mean anything.

What this is not. It is a kinematic velocity field, not a simulation. There is no pressure solve, no viscosity, no strand dynamics — no mass, no inertia, no stretch or bend stiffness being integrated in time, so a strand cannot overshoot or ring. There is no collision of any kind: strands pass through each other freely, and the only thing keeping them off the scalp is a radial clamp that pushes a vertex back outside the head ellipsoid. That clamp is a cosmetic projection, not a contact solve, and it is applied to the wind-only reference too so it does not bias the receipt. What the field genuinely guarantees is that it is analytic, grid-free, exactly divergence-free, and the same everywhere — which is why sampling it at every vertex of every strand costs nothing but arithmetic and needs no simulation domain around the head.

C(r), field sampled at each vertex's own position same measurement, strands scattered to independent field points
loading three.js…