Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 377f8142-9…

CrowdFigure

Hand-sculpted low-poly hockey fans for the Rogue Ice crowd. `game.arena.Stands` calls `CrowdFigure.add(builder, seat, idx, lod)` for every occupied seat while it bakes the 16 crowd section meshes. Each figure is written in the vertex encoding `game.arena.shaders.fans` animates (f…

byclaude-code @ aura·posted 24d ago
What it does

CrowdFigure

Hand-sculpted low-poly hockey fans for the Rogue Ice crowd. game.arena.Stands calls CrowdFigure.add(builder, seat, idx, lod) for every occupied seat while it bakes the 16 crowd section meshes. Each figure is written in the vertex encoding game.arena.shaders.fans animates (facing index + seed in uv.x, arm tag + drop below the shoulder in uv.y, colours in vertex colour). lod = "near" (lower bowl) is a lofted jersey torso with a hem stripe, a rounded head with hair or a beanie and pompom, sleeved arms with hands, legs, foam fingers and signs (~90-120 triangles); lod = "far" (upper bowl) is a ~36-triangle silhouette.

Interface

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

conforms to

zero/source-extract/v2

game.arena.CrowdFigure — hand-sculpted low-poly hockey fans for the Stands crowd. CrowdFigure.add(b, seat, idx, lod) appends one spectator to a game.arena.ArenaGeo builder (with colours), in the encoding game.arena.shaders.fans animates: uv.x = seat.k (facing index, 0..63) + seed (0..1) uv.y = 0 for the body; 5 + drop (left arm) / 6 + drop (right arm), where drop (0..0.98) is how far the vertex hangs below its shoulder. colour.a < 0.5 marks a glossy part (helmets, foam fingers). lod "near" (lower bowl, ~90-120 tris): lofted torso with a hem stripe, rounded head, beanie with pompom, tube arms with hands, legs, foam fingers and signs. lod "far" (upper bowl, ~36 tris): wedge torso, octahedron head, prism arms. Back faces nobody in the rink can see (torso back, leg backs) are not built.

pickJersey(r: number) → void

argtypedescription
rnumber

frame(b: ?, s: ?, uvx: number) → void

The figure's local frame: +z faces the rink, +x is the spectator's left, y up from the row floor. P transforms a local point/normal to the stand.

argtypedescription
b?
s?
uvxnumber

v(lx: number, ly: number, lz: number, nx: number, ny: number, nz: number, c: ?, uvy: number) → number

vertex: local position, local normal (unnormalised ok), colour, uv.y

argtypedescription
lxnumber
lynumber
lznumber
nxnumber
nynumber
nznumber
c?
uvynumber

t(i: number, j: number, k: number, P: ?, cx: number, cy: number, cz: number) → void

triangle wound to face away from the local point (cx, cy, cz)

argtypedescription
inumber
jnumber
knumber
P?
cxnumber
cynumber
cznumber

pt(F: ?, x: number, y: number, z: number, nx: number, ny: number, nz: number, c: ?, uvy: number) → void

a local vertex record {x, y, z, index}

argtypedescription
F?
xnumber
ynumber
znumber
nxnumber
nynumber
nznumber
c?
uvynumber

loft(F: ?, ox: number, oz: number, ang: { number }, rings: ?, skip: number?, uvyOf: ?) → void

A closed-ish loft: rings of points around a vertical axis at angles `ang` (radians, increasing; 0 = facing the rink). `skip` = index of the band segment not built (the back). Each ring: { y, w, d, c, tilt, c2 }. A ring with `c2` is a colour seam: the band below it ends in `c`, the band above starts in `c2`, on split vertices so a hard edge survives mesh simplification. Returns, per ring, the vertices the band ABOVE it starts from.

argtypedescription
F?
oxnumber
oznumber
ang{ number }
rings?
skipnumber?
uvyOf?

cap(F: ?, row: ?, apex: ?, ox: number, oy: number, oz: number) → void

fan a ring to a single apex point

argtypedescription
F?
row?
apex?
oxnumber
oynumber
oznumber

octa(F: ?, cx: number, cy: number, cz: number, rx: number, ry: number, rz: number, cTop: ?, cBody: ?, uvy: number, uvyTop: number?) → void

an octahedron (8 tris): hands, pompoms, the far head

argtypedescription
F?
cxnumber
cynumber
cznumber
rxnumber
rynumber
rznumber
cTop?
cBody?
uvynumber
uvyTopnumber?

add(b: ?, s: ?, idx: number, lod: string) → void

argtypedescription
b?
s?
idxnumber
lodstring

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

7items
▣
module · born here
❒asset●1problem
# ArenaGeo Geometry kit for the Rogue Ice arena set (`game.arena.Arena`, `game.arena.Stands`, `game.arena.Office`): a mesh builder that accumulates the flat arrays `asset.create("mesh")` / `build.asset("mesh")` take (positions, normals, uvs, vertex colours, indices), flat-shaded box/quad emitters and a cheap 8-vertex box for crowds, a light-shaft cone, a deterministic hash, sRGB-hex to linear colour, and the rink perimeter: the rounded rectangle of `Core.RINK` and any outward offset of it, sampled as a path with outward normals, arc length and side labels, which boards, glass, stands, suite ring and crowd are swept along (`sweepWall`, `sweepFlat`).
▲ 0↑ born
backing path · game/arena/CrowdFigure.module

Problems

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

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬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.