Skip to content

Shared parts for the next effects: warmth, a fluid's pressure solve and the CIE color fit in lib - #32

Merged
kevinraymond merged 1 commit into
mainfrom
lib-field-warmth
Oct 29, 2026
Merged

kevinraymond merged 1 commit into
mainfrom
lib-field-warmth

Conversation

@kevinraymond

Copy link
Copy Markdown
Owner

Round 5's first effects share three parts, so they go into lib in one
pull request with one rebuild of everything, before the first effect
that uses them (board #4845).

  • warmth() and lib/glsl/warmth.glsl: what stands out in front or is
    inside the mask, and what moves (optical_flow()'s change and clock),
    blended into one field that rises quickly and falls slowly.
    Movement is held between the input's frames, ignored on the first
    frame (it is against nothing there) and below a dead zone (haze
    drifting through a dark room). Frost thaws by it next; Schlieren's
    plume and Ferrofluid's magnet are planned on it.
  • incompressible(): Fluid's pressure solve (divergence, Jacobi
    pressure, projection) moved into lib/glsl, making the same operators
    with the same names and comments in Fluid. The advection stays in
    each effect, since its forces are the effect's own.
  • lib/glsl/spectrum.glsl: Lens Flare's CIE 1931 color matching fit
    (Wyman, Sloan and Shirley, JCGT 2013), which its starburst now
    pastes in front.
  • Proof that nothing else changed: dev/probes/structure_diff.py
    against the builds before finds only shader text changed, the
    comment headers of Fluid's divergence, pressure and velocity, and
    Lens Flare's burst with the fit pasted from lib. The other 25
    effects are identical, so every effect is rebuilt for the lib hash
    with no bump.
  • Showreel 0.1.30 (idle 0 of 7905, unwired and wired).
    BUILDING.md lists the new parts. Both repo tests pass.

…nd the CIE color fit in lib

Round 5's first effects share three parts, so they go into lib in one
pull request with one rebuild of everything, before the first effect
that uses them (board #4845).

- warmth() and lib/glsl/warmth.glsl: what stands out in front or is
  inside the mask, and what moves (optical_flow()'s change and clock),
  blended into one field that rises quickly and falls slowly.
  Movement is held between the input's frames, ignored on the first
  frame (it is against nothing there) and below a dead zone (haze
  drifting through a dark room). Frost thaws by it next; Schlieren's
  plume and Ferrofluid's magnet are planned on it.
- incompressible(): Fluid's pressure solve (divergence, Jacobi
  pressure, projection) moved into lib/glsl, making the same operators
  with the same names and comments in Fluid. The advection stays in
  each effect, since its forces are the effect's own.
- lib/glsl/spectrum.glsl: Lens Flare's CIE 1931 color matching fit
  (Wyman, Sloan and Shirley, JCGT 2013), which its starburst now
  pastes in front.
- Proof that nothing else changed: dev/probes/structure_diff.py
  against the builds before finds only shader text changed, the
  comment headers of Fluid's divergence, pressure and velocity, and
  Lens Flare's burst with the fit pasted from lib. The other 25
  effects are identical, so every effect is rebuilt for the lib hash
  with no bump.
- Showreel 0.1.30 (idle 0 of 7905, unwired and wired).
  BUILDING.md lists the new parts. Both repo tests pass.
@kevinraymond
kevinraymond merged commit b86839f into main Oct 29, 2026
1 check passed
@kevinraymond
kevinraymond deleted the lib-field-warmth branch October 29, 2026 20:13
kevinraymond added a commit that referenced this pull request Oct 29, 2026
…ow, thawing wherever something moves or stands in front, as phase fields and snow crystals grow it

Frost grown over the live picture as it grows on a cold window
(board #4846): crystals start on the picture's edges and creep in from
the frame where the room behind is far or dark, and thaw wherever
something moves or stands in front, growing back behind it. Stacked
on #32, whose lib warmth() it thaws by: merge that first.

- Fern: R. Kobayashi's phase field (Physica D 1993) with his
  constants, a grid step of 0.0625 for thin arms, K 2, delta 0.06,
  ten steps a frame at half size. As Kim and Lin steered it (SCA
  2003), the six arms follow the picture's edges (lib
  structure_tensor()). The glass draws the heat out weakly toward a
  temperature the picture sets; drawn out fast, the ice grew in
  compact sheets. Where it has frozen over, the arms (frozen first)
  stay whiter than the ice between them, so the ferns still show.
- Stars: C. A. Reiter's snow crystals (2005) on a hexagonal lattice,
  two passes a step. New stars start only in moist air: one started
  in the dry air around a grown star stayed a lone speck.
- Fog: breath figures (Beysens and Knobler 1986; Fritter, Knobler
  and Beysens 1991), droplets that grow, merge at their center of
  volume and leave clear glass for new ones, kept a grid a size in
  one atlas (three passes a frame), each a small lens over a haze.
- Warmth melts the ice (lib warmth(): what stands out in the depth
  map or mask, what moves, quick to warm, slow to cool, counted from
  0.15: haze's faint warmth wore Stars to specks). Warming the ice's
  temperature instead kept a thawed patch unfreezable for 10 s.
- Music: beats start crystals (droplets in Fog), spurt the growth and
  glint the edges and sparkles; loudness grows it faster; the bass
  warms what stands out; a drop starts crystals along every edge.
- Flashing: no setting. Stress beat and 140 BPM on the dancer,
  flowers, plaza, hands and koi, every style, and the corners: the
  area rule at the clip's own everywhere but Fern on the koi, at the
  half-flash margin; red flashes only the clips' own.
- 2.5 / 2.8 / 2.6 ms GPU (Fern / Stars / Fog, medians of three) and
  0.5 to 0.75 ms CPU a frame at 1280 x 720 on the M2 Pro, 60 fps;
  nothing cooks while unused (0 of 384).
- Patents: clear by design. Clipo's US 10,216,945 and Samsung's
  US 11,150,775 clear frost by touch: Frost takes no touch input and
  cleared glass refreezes as it grows back. Huawei's pending
  US 2025/0117558 moves a phase field by a velocity worked out from
  it: the ice never moves (private/patents/frost.md).

Also: Showreel 0.1.31 with twenty-eight effects (idle 0 of 8291,
Cycle 3.7 ms GPU, flash within each setting), the README row, status
and hero (2, eight rows of three, two of two), and the prototypes
(dev/protos/frost).
kevinraymond added a commit that referenced this pull request Oct 29, 2026
…ow, thawing wherever something moves or stands in front, as phase fields and snow crystals grow it (#33)

Frost grown over the live picture as it grows on a cold window
(board #4846): crystals start on the picture's edges and creep in from
the frame where the room behind is far or dark, and thaw wherever
something moves or stands in front, growing back behind it. Stacked
on #32, whose lib warmth() it thaws by: merge that first.

- Fern: R. Kobayashi's phase field (Physica D 1993) with his
  constants, a grid step of 0.0625 for thin arms, K 2, delta 0.06,
  ten steps a frame at half size. As Kim and Lin steered it (SCA
  2003), the six arms follow the picture's edges (lib
  structure_tensor()). The glass draws the heat out weakly toward a
  temperature the picture sets; drawn out fast, the ice grew in
  compact sheets. Where it has frozen over, the arms (frozen first)
  stay whiter than the ice between them, so the ferns still show.
- Stars: C. A. Reiter's snow crystals (2005) on a hexagonal lattice,
  two passes a step. New stars start only in moist air: one started
  in the dry air around a grown star stayed a lone speck.
- Dew: breath figures (Beysens and Knobler 1986; Fritter, Knobler
  and Beysens 1991), droplets that grow, merge at their center of
  volume and leave clear glass for new ones, kept a grid a size in
  one atlas (three passes a frame), each a small lens over a haze.
  Built as Fog; renamed, since it reads as round droplets.
- Warmth melts the ice (lib warmth(): what stands out in the depth
  map or mask, what moves, quick to warm, slow to cool, counted from
  0.15: haze's faint warmth wore Stars to specks). Warming the ice's
  temperature instead kept a thawed patch unfreezable for 10 s.
- Music: beats start crystals (droplets in Dew), spurt the growth and
  glint the edges and sparkles; loudness grows it faster; the bass
  warms what stands out; a drop starts crystals along every edge.
- Flashing: no setting. Stress beat and 140 BPM on the dancer,
  flowers, plaza, hands and koi, every style, and the corners: the
  area rule at the clip's own everywhere but Fern on the koi, at the
  half-flash margin; red flashes only the clips' own.
- 2.5 / 2.8 / 2.6 ms GPU (Fern / Stars / Dew, medians of three) and
  0.5 to 0.75 ms CPU a frame at 1280 x 720 on the M2 Pro, 60 fps;
  nothing cooks while unused (0 of 384).
- Patents: clear by design. Clipo's US 10,216,945 and Samsung's
  US 11,150,775 clear frost by touch: Frost takes no touch input and
  cleared glass refreezes as it grows back. Huawei's pending
  US 2025/0117558 moves a phase field by a velocity worked out from
  it: the ice never moves (private/patents/frost.md).

Also: Showreel 0.1.31 with twenty-eight effects (idle 0 of 8291,
Cycle 3.7 ms GPU, flash within each setting), the README row, status
and hero (2, eight rows of three, two of two), and the prototypes
(dev/protos/frost).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant