Log inGet started
·
procpack · drop-in viewer
asset⌬ procpackprocPackprimary: init.luau·part ofpackage procgen.package·originates fromworld 07158574-5…

flow.procPack

Fields that push things around, and the noise they are made of. Each is a field like any other: `sim.force` applies it to a solver's particles, `attribute.set` writes it onto a geometry, and a field op combines it with others. Each also compiles to the dispatch its CPU form compu…

by◐lumi·posted 1mo ago
What it does

flow

Fields that push things around, and the noise they are made of. Each is a field like any other: sim.force applies it to a solver's particles, attribute.set writes it onto a geometry, and a field op combines it with others. Each also compiles to the dispatch its CPU form computes, on the same lattice hash as field.noise, so a solver evaluates it on the device at every step.

A position left unwired is where each element of the domain stands: the particles a solver steps, or the points an attribute.set writes. Wire a position to sample the field somewhere else.

procgen.searchNodes("", { pack = "flow" }) lists the family and procgen.describeNode("op.<id>") describes any one of them.

Fields that push

  • field.curl — curl noise. It swirls with no sources or sinks, so what follows it eddies without bunching up or thinning out. This is how smoke, dust and sparks move in turbulent air.
  • field.vortex — turning around an axis through a centre. It is strongest at the axis and falls to half at radius.
  • field.attractor — pulls toward a centre, fading to zero at radius when one is given. A negative strength repels.

Orientation

  • field.align — the rotation turning an element's axis (+Y unless given) onto a direction, as the quaternion orient takes. An unwired direction is each element's own v, so written onto particles as orient it turns each one onto its motion. A card drawn with zero_billboard_streak then streaks along it.

Noise

  • field.worley — the distance to the nearest scattered feature point. Use it for cells, cracks, scales and stone.
  • field.simplex — smooth signed noise in [-1, 1].
local g = proc.graph("embers")
g:node("emit", "points.grid", nil, { countX = 1, countZ = 1 })
g:node("src", "sim.spawn", { points = "emit" }, { rate = 200, lifetime = { x = 2, y = 4 } })
g:node("curl", "field.curl", nil, { frequency = 0.6, amplitude = 5 })
g:node("swirl", "sim.force", { field = "curl" })
-- Air rising at 2 m/s: each ember is pulled toward that velocity, which is
-- wind and drag in one.
g:node("updraft", "field.constant", nil, { value = { x = 0, y = 2, z = 0 } })
g:node("air", "sim.force", { field = "updraft" }, { mode = "velocity", strength = 0.4 })
g:node("sim", "sim.particles", { sources = { "src" }, forces = { "swirl", "air" } })

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

flow — Fields that push things around and the noise they are made of: curl noise, vortices, attractors, and Worley and simplex noise. Every one is a field like any other — a sim.force applies it to a solver's particles, an attribute.set writes it, a shader reads it — and each compiles to the same dispatch its CPU form computes, on the same lattice hash the rest of the noise uses.

num(v: any, d: number) → number

argtypedescription
vany
dnumber

vec(v: any, dx: number, dy: number, dz: number) → void

argtypedescription
vany
dxnumber
dynumber
dznumber

vecLiteral(x: number, y: number, z: number) → string

argtypedescription
xnumber
ynumber
znumber

vec3Field(v: any, attribute: string) → any

A socket's value as a field: a field passes through, a literal becomes a constant one, and an unwired socket reads `attribute` off each element of the domain it is evaluated over.

argtypedescription
vany
attributestring

seedOf(v: any) → number

argtypedescription
vany

potential(seed: number, x: number, y: number, z: number) → void

The CPU forms, line for line with the WGSL above.

argtypedescription
seednumber
xnumber
ynumber
znumber

curl(seed: number, x: number, y: number, z: number, freq: number, amp: number) → void

argtypedescription
seednumber
xnumber
ynumber
znumber
freqnumber
ampnumber

unit3(seed: number, ix: number, iy: number, iz: number) → number

argtypedescription
seednumber
ixnumber
iynumber
iznumber

worley(seed: number, x: number, y: number, z: number, jitter: number) → number

argtypedescription
seednumber
xnumber
ynumber
znumber
jitternumber

simplexCorner(seed: number, ix: number, iy: number, iz: number, x: number, y: number, z: number) → number

argtypedescription
seednumber
ixnumber
iynumber
iznumber
xnumber
ynumber
znumber

simplex(seed: number, x: number, y: number, z: number) → number

argtypedescription
seednumber
xnumber
ynumber
znumber

normalized(x: number, y: number, z: number) → void

argtypedescription
xnumber
ynumber
znumber

field(desc: string, params: { [string]: any }, examples: { string }, eval: any, inputs: any?) → any

argtypedescription
descstring
params{ [string]: any }
examples{ string }
evalany
inputsany?

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.