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

growth.procPack

Curves that grow from other curves. The result is a single geometry holding every curve, starting curves included. Each point carries: `generation`: 0 on the starting curves, one more per fork; `u`: how far along its own curve, 0 to 1.

by◐lumi·posted 1mo ago
What it does

growth

Curves that grow from other curves. The result is a single geometry holding every curve, starting curves included. Each point carries:

  • generation: 0 on the starting curves, one more per fork;
  • u: how far along its own curve, 0 to 1.

Because the result is geometry, every curve, point and field op works on it:

  • roughen it with geometry.set_position and a noise field;
  • sweep it into tubes with geometry.sweep;
  • sample it with points.on_curve, for sparks along a crack;
  • read generation through a ramp, so branches thin as they fork.

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

Ops

  • curve.branch — branches sprout from each curve, generation after generation. Each curve sends out branches children from along its length. A child turns off its parent by up to angle, is ratio as long, and wanders as it goes. A normal keeps the growth in one plane, the way a crack keeps to the surface it crosses. Use it for cracks, lightning forks, frost and coral.
  • curve.grow — branches reach toward a cloud of attractor points (space colonisation). A node grows a step toward the attractors that pull on it, and an attractor a branch reaches is spent, so the growth fills the cloud's shape. Use it for canopies, root balls and leaf veins.
g:node("impact", "curve.line", nil, { start = { x = -1, y = 0, z = 0 }, finish = { x = 1, y = 0, z = 0 }, segments = 8 })
g:node("cracks", "curve.branch", { curve = "impact" }, { generations = 4, branches = 2, angle = 45, wander = 25, normal = { x = 0, y = 1, z = 0 } })
g:node("here", "field.position")
g:node("jag", "field.curl", { position = "here" }, { frequency = 3, amplitude = 0.05 })
g:node("rough", "geometry.set_position", { geometry = "cracks", offset = "jag" })

Interface

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

conforms to

zero/source-extract/v2

growth — Curves that grow: branches sprouting from branches, generation after generation, or reaching toward a cloud of attractor points. Cracks, lightning, roots, veins and trees are curves of this shape, and they come out as curves of one geometry, so every curve, point and field op works on them.

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

argtypedescription
vany
dnumber

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

argtypedescription
vany
dxnumber
dynumber
dznumber

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

argtypedescription
xnumber
ynumber
znumber

cross(ax: number, ay: number, az: number, bx: number, by: number, bz: number) → void

argtypedescription
axnumber
aynumber
aznumber
bxnumber
bynumber
bznumber

rotate(vx: number, vy: number, vz: number, kx: number, ky: number, kz: number, angle: number) → void

`v` turned `angle` radians about the unit axis `k` (Rodrigues).

argtypedescription
vxnumber
vynumber
vznumber
kxnumber
kynumber
kznumber
anglenumber

turnAxis(dx: number, dy: number, dz: number, nx: number, ny: number, nz: number, r: number) → void

An axis perpendicular to `d` to turn it about: the plane's normal when the growth keeps to a plane, otherwise one drawn around `d` by `r`.

argtypedescription
dxnumber
dynumber
dznumber
nxnumber
nynumber
nznumber
rnumber

builder( ) → void

The geometry every growth op writes: the points, and the curves through them, each point knowing its generation and how far along its curve it is.

point(x: number, y: number, z: number, g: number, u: number) → number

argtypedescription
xnumber
ynumber
znumber
gnumber
unumber

curve(points: { number }) → void

argtypedescription
points{ number }

finish( ) → any

trunksOf(g: any, op: string) → void

argtypedescription
gany
opstring

addTrunks(b: any, trunks: { any }) → void

Each trunk's points into the builder, as generation 0.

argtypedescription
bany
trunks{ any }

branch(inputs: any, params: any) → any

argtypedescription
inputsany
paramsany

rnd( ) → number

grid(cell: number) → void

A grid over space holding which nodes lie in each cell, so the nearest node to an attractor is found among its neighbours rather than among them all.

argtypedescription
cellnumber

key(ix: number, iy: number, iz: number) → string

argtypedescription
ixnumber
iynumber
iznumber

add(i: number, x: number, y: number, z: number) → void

argtypedescription
inumber
xnumber
ynumber
znumber

near(x: number, y: number, z: number, visit: (number) → void

argtypedescription
xnumber
ynumber
znumber
visit(number

grow(inputs: any, params: any) → any

argtypedescription
inputsany
paramsany

addNode(x: number, y: number, z: number, parent: number) → number

argtypedescription
xnumber
ynumber
znumber
parentnumber

chainFrom(root: number, first: number, g: number) → void

argtypedescription
rootnumber
firstnumber
gnumber

eval(_ctx: ?, inputs: ?, params: ?) → void

argtypedescription
_ctx?
inputs?
params?

eval(_ctx: ?, inputs: ?, params: ?) → void

argtypedescription
_ctx?
inputs?
params?

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.