Dust Morph Hero

group .........
Hero sections
markdown ......
/lab/dust-morph-hero.md
human .........
/lab/dust-morph-hero

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

A hero whose subject is a point cloud rather than a mesh: every shape is area-weighted surface sampled into the same set of points, so moving between shapes carries each point from its old surface to its new one, staggered and bowed outward so the form comes apart into dust halfway and reforms on arrival. The pointer pushes points aside in screen space and the label reveals per character on each change.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * One cloud, many shapes

    Every shape is sampled into the same number of points up front, so index i on one shape is the same point as index i on the next. A change of subject is therefore a journey per point rather than a swap of two objects, which is what lets the form survive the move.

  • * Every point carries a normal

    A point knows which way the surface it came from was facing, and that one attribute does three jobs: it lights the cloud, it aims the burst, and it is interpolated through the move so the shading never pops. Without it a point cloud can only ever be flat ink, because there is nothing for a light to be at an angle to.

  • * Area-weighted, not vertex-weighted

    Triangles are drawn in proportion to their area from a cumulative table, so density stays even instead of bunching wherever the source mesh happens to be finely tessellated. The same barycentric weights interpolate the vertex normals, so a sampled point is lit by the surface it came from rather than by its triangle facet.

  • * Out along the surface, in along the next

    The morph runs in three overlapping phases: burst out along the source normal, cross to a shell just off the target, settle onto it. Because both offsets follow normals, the cloud reads as the form inflating and deflating rather than as points crossing the middle of the frame.

  • * A wipe, not a shuffle

    Each point is delayed by its rank along an axis rather than by its seed, so the change travels through the form as a direction you can follow. The seed only jitters that slightly; let it dominate and the move dissolves into noise.

  • * Drag turns it, hover disturbs it

    The pointer does two different jobs and they are kept apart. Held down it orbits the subject, so you can look under and behind it, with the turn coasting after release and the tip clamped short of the poles where the drag would otherwise reverse under your hand. Merely hovering never steers anything, because an unasked-for lean toward the cursor reads as the object being handled when you only meant to look at it. The idle spin continues underneath either way, so a turned view drifts on instead of freezing where it was let go.

  • * The cursor is simulated, not applied

    The pointer never displaces a point directly. It drives two simulation passes whose state persists between frames: a screen space brush field that is advected along itself, diffused into its neighbours and decayed, and a spring damper per point carrying an offset and a velocity in its own texel. That persistence is the whole effect. Forces accumulate into velocity and velocity into offset, so dust keeps moving after the cursor has passed, trails behind it, and is drawn home by a spring rather than snapping back the instant the cursor leaves.

  • * Displaced dust chains instead of spraying

    Repulsion is aimed between straight away from the cursor and the point's own normal projected to screen, then bent along a curl noise flow read in the surface frame, and motion across that flow is damped. Points therefore gather into strands that run along the form. A plain radial push would move the same points the same distance and look like a hole being blown in a wall.

  • * Relative size is kept, not flattened

    Models in a set are authored at different sizes on purpose, and scaling each to a common radius throws that away: a subject that should tower over the others arrives the same size as them. One scale is applied to the whole set instead, and the camera is fitted to the median shape rather than the largest, so the typical subject fills the frame and a genuinely oversized one is allowed to overflow. Fitting to the largest would let a single wide outlier push the camera back until everything else is a detail in an empty frame.

  • * One flat point size

    Points are drawn at a constant size in device pixels, not scaled by depth. Perspective scaling looks obviously right and is a trap: the near face swells into heavy overdraw while the far face shrinks under one pixel, and a point under a pixel is not drawn faintly, it is not rasterized at all. The cloud loses its back half and reads as a solid crust. Depth is carried by the lighting instead.

  • * Resolution is a density control

    What makes a cloud read as a volume is points per pixel, so drawing at full retina resolution spreads the same points over four times the area and thins the subject to grain. Capping the pixel ratio and spending the budget on points instead is the better side of that bargain.

  • * The camera is solved, not tuned

    The cloud spins about one axis, so its silhouette sweeps a cylinder rather than a sphere. Measuring the distance from that axis and the height separately, then placing the camera to satisfy whichever of width or height is tighter, is what makes the subject the same size on a phone as on a desktop without ever cropping. A fitted sphere would reserve width for a depth that is never turned toward the camera.