Commit Graph
32 Commits
Author SHA1 Message Date
shinyobjectz 90b2621d5b raea/character's anatomy (bones, organs, pieces, hits) and its test 2026-11-17 19:52:34 -08:00
shinyobjectz 7c83b42fbb raea/people: a role's headwear drawn per person by weight on its own fork, so everything else draws as before 2026-11-17 19:52:34 -08:00
shinyobjectz c75455936f raea/people: streetMix, the street's mix by the hour from the city's days
streetMix(day) counts each role's minutes walking (trips on foot) in each
hour of a cityDay, for passersBy's mixAt: the sidewalk then carries the
people whose days put them on it (the shift to the Works at half past five,
the children out of school at one) instead of a mix set by hand. An hour no
one walks in takes the day's mix; an empty mix at a minute takes FlowInput.mix.

Test: on the test city's day, housewives walking to market at half past ten,
only the patrols at noon, and passersBy's noon street carrying the patrols.
2026-11-17 19:52:34 -08:00
shinyobjectz 2ddcf9fbe1 raea/people: passersBy's street mix by the hour (mixAt)
A street's walkers were each one person by a fixed mix all day, so a noon
sidewalk carried the munitions workers who are at the Works and the children
who are in school till one. FlowInput.mixAt(minute) gives the mix by the time
of day: each round of a walker (out of a door, along the street, in at a door)
is then its own person, drawn by the mix when the round began, so the street's
people change as the day goes and no one changes on it. A round runs at the
slowest walker's pace so anyone's walk fits it, and a walk has more slots by
the mean pace over it, so a street holds about as many either way. Without
mixAt every draw is as before (existing shots unchanged).

Test: before the change only one mix's role, after only the other's; across
it, step by step, no one jumps or changes role and new walkers come out of
doors; as many out at 5 pm as without it. CH52 says so.
2026-11-17 19:52:34 -08:00
shinyobjectz 179f244e5d raea/people: passers-by go door to door round a block, legs keep their own busyness, no one jumps
- Walk.closed (a ring round a block: walkers turn its corners), Walk.legs (each street's side its own walkers a
  metre), Walk.doors (walkers come out of one and go in at another, a while indoors between): a world's tile walks
  were cut at every tile edge and wherever its raster said building, and walkers wrapped at each cut, popping in
  frame (THE GAMBIT's Leipziger x Jerusalemer corner)
- a walker heads the way with more of its leg ahead and turns a corner by at most SPILL (25 m), so a busy leg stays
  busy; slots are scaled by each leg's measured stretch share so a leg holds its nominal walkers a metre (0.311 and
  0.074 against 0.3 and 0.08 over 17:00-19:00)
- the keep-right offset turns smoothly through 1.5 m either side of a corner (it jumped 0.7 m at one) and spreads
  across the pavement (two loose streams, not two files)
- test: 48 frames at 24 fps round a block, no walker moves more than 0.12 m a frame, everyone who appears does so at
  a door, the avenue side over 2.5 times as busy a metre as the quiet sides
2026-11-17 19:52:34 -08:00
shinyobjectz 4b707f246f raea/people: passers-by on a city's sidewalks, places found by grid, queues on the world's line facing the door (CH52)
- flow.ts: passersBy(walks, minute, {roles, folk, mix, seed, busy}) - each sidewalk holds walkers by its length,
  its busyness at the busiest hour (5 pm) and the hour's share (STREET_HOURS); each a person by the mix walking the
  line at their own pace, keeping right; computed per minute, not stepped, so any frame stands alone
- near.ts: Grid/gridOf - the nearest few of a kind and all within a reach from the cells around a point (a slice of
  Berlin has 16,000 shops: placeFor sorted them all for every block of every day); cityDay's byKind no longer copies
  the list per place
- Place.line: where the world says a queue forms (a tile's queue line); queued people now face the door (they faced
  away: f + pi/2 is the line's own direction)
- a block with nowhere to happen (no workplace found, no place of its kind) is not lived: a sentry with no post
  stayed at his own front door 'on guard' (266 at one stand-in post in gambit's first run)
- tests: the grid against a full sort (200 points), the line followed and faced, blocks without a place, passers-by
  (count by hour, on the line, keeping right, deterministic, a walking pace)
2026-11-17 19:52:34 -08:00
shinyobjectz cfb58e87ac raea/people: the people of a place as data and as days (docs/character.feature CH50-CH53)
A project lists roles (a profession, a rank, a household part: the share of women, ages, traits, dress and kit by
weight, modes of travel, workplace, a day of blocks and habits) and places; populate() draws everyone from one seed
(name, sex, age, five traits, habits, crowd-face numbers, height, hair, dress, gait), dayOf() gives each a day at
real places with punctuality from conscientiousness and trips by a mode chosen first (left in time by that mode,
waiting when early), and snapshot() places everyone at a minute: near, middle, far by distance with hysteresis, or
inside (counted, never drawn), with people out at the same door stood in a queue along its front. census() is the
far level; react() how a person meets an event (a shock underfoot, a report). Folk.avoid rejects names a place's
records hold (a real resident's). Made for THE GAMBIT's Berlin: 3,003 people and their days in 35 ms.
12 tests (sdk/character/test/people.test.ts); raea/people in sdk/tsconfig.base.json and the layout conformance.
2026-11-17 19:52:34 -08:00
shinyobjectz 673479e573 raea character: a head worn as a part drawn as skin; the skin shader compiles with its tile off
A GNM head is a part, and <Character skin> drew only the body's "skin" material as skin: the
faces, the skin most seen, were plain glTF PBR (no light under the skin, no clearcoat, no fine
relief). A part may now carry its own skin settings (its maps and the fine relief's scale: a
head's UVs aren't the body's), and a head part (one with eye joints) is drawn as skin whenever
the Character's skin is on.

skin.ts: WESL's @if covers one statement, so mtex and grain read an msamp never declared when
microMap was false; each line now has its own guard.
2026-11-17 19:52:34 -08:00
shinyobjectz 744301d1a1 raea/character: onJoint, where something carried on a joint goes as the body is posed (a slung rifle on RightShoulder)
Placed against the joint at rest in the body's frame and carried by the joint's turn from rest, as a cap rides
Head; the body's placement moves and turns it with the body. Tested in test/carry.test.ts.
2026-11-17 19:52:34 -08:00
shinyobjectz db6e7fb5e0 raea/character: a head part's cornea drawn as one, reflection only
A hero's head (sheet3d's gnm_headglb.py) carries its cornea as a white glTF
material at alpha 0.08 under BLEND. Bevy lights it as it does skin and lays 8%
of it over the eye: a grey film that hid chars/gb-sapper's brown irises in any
real light (the cab's lamps, a studio key), and chars/teal's before. Every part
with eye joints now has its cornea re-covered Premultiplied over black at alpha
0, which adds the reflection alone: the iris shows, with a catchlight.
2026-11-17 19:52:34 -08:00
shinyobjectz 523fd30929 CH20c: the eyes take a look target. <Character gaze={point}> turns each eye joint to a point in the scene on top of the pose, in its head's frame, within an eye's range (35 degrees to a side, 25 down, 17 up), so the eyes cover what the head has not turned; a part that has the eye joints has its upper lids ride the eyes down (blink morphs raised to 0.45 at the lowest). character/eyes.ts: eyesTo, lidsFor, EYE_RANGE. 2026-11-15 20:31:57 -08:00
shinyobjectz dc8038add1 CH1a: the old character SDK names SOMA's joints. sdk/character bones.ts B gives SOMA's names (Hips, Spine1, Spine2, Chest, Neck1, Head, LeftShoulder, LeftArm, LeftForeArm, LeftHand, LeftLeg, LeftShin, LeftFoot, LeftToeBase; a finger's phalanges 1 to 3 as SOMA's 2 to 4, the thumb's 1 to 3), BODY_JOINTS is SOMA's 23 with Neck2. Bodies on the old game_engine rig still load: joint() finds a SOMA name by its old one and an old name on a SOMA body (somaName, oldName, sameJoint), the side, mirror, role and finger helpers read both, captured() takes the body's own count or stops at the first joint that isn't the body's, and retarget's BVH maps keyed by old names still map. A body named as CMU or Mixamo name theirs (LeftUpLeg, their LeftLeg being the shin) is refused with a message instead of read wrong. systems/body Skeleton::joint reads a SOMA name on an old body the same way. The conformance stick body is on SOMA's names; a new test checks both names find one joint and the two turn into each other; character.test 27 of 29 pass, the 2 that fail failing the same way before the change 2026-11-15 08:36:02 -08:00
shinyobjectz ef46cab89f CH20: a Character part may name the body's joints it has (a head has the neck, the head and the eyes), so a part with some of the joints is drawn; the generated head rides SOMA's body through a library walk with its expressions driven by name 2026-11-15 05:36:21 -08:00
shinyobjectz 1dee5992e5 HG16: in progress: a SOMA body's twist joints set on any pose (raea-sys-body with_twists, native call character.twists, raea/character withTwists), so a clip or a solver that turns the named joints only draws with the limbs' twist spread. The body library's captures, moved to SOMA joint for joint, play on SOMA's body through it 2026-11-15 05:33:25 -08:00
shinyobjectz bdb77110de HG16: in progress: a SOMA body posed from a motion's turns in the SDK. raea-sys-body turns.rs: from_turns (a joint's world turn from bind is the motion's turn after the turn from bind to SOMA's T-pose; a joint the motion doesn't name rides its parent) and set_twists (each limb segment's four twist joints by SOMA's shares); native call character.turns; raea/character turnsPose and TurnsClip. Test: a forearm's twist joints take 5 to 95 per cent of the hand's turn, an upper arm's stay with the chest near the shoulder 2026-11-15 05:01:35 -08:00
shinyobjectz 56c71ed264 HG12a: motion on SOMA's skeleton plays on a raea body. SOMA (NVlabs/SOMA-X, Apache-2.0) is the 78-joint skeleton NVIDIA's motion models and datasets speak. raea-sys-body soma.rs points each of raea's bones the way SOMA's matching bone points, at raea's own lengths, fits the pose to those places, and turns each arm's and leg's first bone so its elbow or knee flexes about its own axis (settle_hinge, shared with two_bone). raea/character: readSomaUsda reads a SOMA animation saved as text USD; somaPose is the native call character.soma. A body 1.3 times the size under SOMA's names is followed within 2 degrees a bone; SOMA-X's example animation plays on turbo. 37 tests 2026-11-15 04:16:41 -08:00
shinyobjectz d37f835bfd HG14: a grip chosen by the thing's shape for a rod lying down (taken over the top, the fingers round it across its length); raea/character's fetch takes a thing as asked when it is in reach and otherwise walks the body to the take's standing place first and puts the take off until it arrives. 35 tests. fetch is not rendered yet 2026-11-14 23:26:39 -08:00
shinyobjectz 20ccabb8dd HG14: a thumb that is in the thing is spread out from the palm until it is clear; a leaving hand stays on its cleared path for longer; character.take answers reach (whether the body can take the thing from where it stands, and how far it must move if not). On turbo's skin: skin in the table 0 mm in four of six takes, finger jumps 67 to 242 degrees a second. The body-only JSON calls (character.fit, character.hand) and the readers the calls share are raea-sys-body's 2026-11-14 23:25:42 -08:00
shinyobjectz 55a95b4d17 HG7b, HG6d: walking up to the thing, a thing handed to another body, and an elbow out of the body's own trunk. A take works wherever the body stands and faces (a test with the body turned 120 degrees and moved 2 m). raea/character's placedPose stands a pose somewhere else; walkUp is the body's own motion for arriving at a take's standing place on a walk capture set down to end there. A hand-over is two takes: the giver's holds the thing out and leaves it as the taker's hand is on. 31 tests 2026-11-14 21:52:34 -08:00
shinyobjectz f3f7207001 HG9b, HG6c: a thing passed from hand to hand, a thing moved where it is and left (a drawer), a throw's wind-up and follow-through; forearms, knees and the carried thing out of the scene's solids. Each hand has its own part in a take (when it starts, is on, lets go), so hands come and go separately. The body bends for a thing only when it is lower than 0.88 of an arm below the shoulders. The body crate's own tests (limits, the hand prior) are its own; 29 tests in all 2026-11-14 21:46:53 -08:00
shinyobjectz ee8edf43b1 HG8a, HG9a, HG10a: a thing held one way brings its holds and hand shape; a carried thing follows a path (a drink is a key at the mouth); weight. The hand lies along the forearm as it arrives, brought level where that would tip fingers into a solid, and the elbow's swing is chosen inside the shoulder's and elbow's ranges instead of clamping the arm after the solve (clamping threw the wrist up to 18 cm off). All of a wrist's twist goes to the forearm. 25 tests 2026-11-14 21:36:00 -08:00
shinyobjectz f6b3188d9f HG6b, HG5b: the arms inside the rig's ranges, the head and chest out of the scene's solids, and SOMA-X's hand prior on raea's fingers. limits.rs is sdk/body's axes and limits in Rust (the same ranges); a take holds both arms inside them and says when it had to. When a solved pose puts the head, neck or chest within 9 cm of a solid the take is solved again with less bend and lean and more squat. prior.rs and data/soma_hand_prior.bin (SOMA-X, Apache-2.0; data/README.md): a 32-component model of real hand poses cut to the rig's fifteen finger joints; a hand shaped by a few numbers, any hand read back and scored; a take opens the hand as it comes in. raea/character's handShape is the native call character.hand. 23 tests. The take scene is the Character SDK project's 2026-11-14 21:25:26 -08:00
shinyobjectz a68b96cf89 HG5a: the rest of both sources, in Rust. From Ik-Object-Holding: interact.rs pick (the nearest thing in reach that the eyes see past the scene's solids) and body.rs look (the head turned to the thing, neck and head sharing it), on through a take. From SOMA-X: fit.rs, the analytical pass of its pose inversion on marks (20 random poses recovered from joint heads and bone ends, every joint within 4 mm), and arm.rs twist_joints, its procedural twist-joint evaluator. raea/character's fitPose is the native call character.fit. A wrist stops at 70 degrees and the frame says so; the fingers point the level way the arm comes; the squat takes more from the hips and less from the back. 19 tests. docs/hands.feature says what of SOMA-X is not converted and why 2026-11-14 21:25:26 -08:00
shinyobjectz 613645ffc6 HG6a: hands stay out of the scene's solids; HG7a: a low thing is taken by bending with the feet planted, and the take says where to stand; HG4a: the carry is against the body. body.rs: clear moves a wrist's place the least that keeps the hand 2 cm off every solid in a take's avoid list; stoop lowers the hips and bends the trunk for hands that must go low, by as much as the hands have got along their reach, with leg IK holding both ankles within 5 mm; stand_for gives the place a forearm off the thing's near face (character.take answers it as stand). The wrist's path arcs up and backs off a hold's surface when leaving. 16 tests: a box on the floor held within 2 cm with the hips over 30 cm down, no point of the hand in a table at any frame. Rendered on a psx person: a cup taken over a table's edge, a box lifted from the floor onto a table. Not right yet: the squat folds the head to the knees, and the body itself keeps out of nothing 2026-11-14 21:25:26 -08:00
shinyobjectz 986fae3c62 HG5: a character in a scene takes a thing. raea/character's take(skel, base, spec, t) makes the native call character.take (runtime/calls), which is systems/grab's take_json: the pose for <Character> and the thing's place each frame, with how far a wrist missed and how far the body was turned from its own motion. Asked as JSON it is the same frame as asked in Rust (a test; 13 pass). Rendered on a psx person: a box taken off a table with both hands and thrown, a cup moved across the table in one hand, upright, the fingers round it; 420 frames, no errors. Not fixed here: hands pass through the table (HG6), and the box's carry place wants tuning by eye 2026-11-14 21:25:26 -08:00
shinyobjectz ddf9a6adef Skin up close: the micro tile's grain shades the colour too, a crease or pore darker with green and blue more than red (the blood under them shows; a grey darkening read as dust), as a photo's colour is a blur that close. The tile keeps its size on the skin by the mask's scale channel (skin_mask.png green, 0 on older bodies is 1). The wrap per channel no longer widens with curvature (sdk/character skin.ts) 2026-11-11 13:34:02 -08:00
shinyobjectz 766eab881d sdk/raea/tools/anny/character.py writes a body on MakeHuman's game_engine rig, so it renders (#68). It still wrote Anny's cmu_mb rig, CMU's 31 joint names with 30 finger joints after them in skeleton.json and a skin of 68 of Anny's own bones in body.glb, which raea's character SDK stopped reading when it moved to game_engine (docs/skeleton.feature): the engine refused body.glb, its skeleton's joints (RightHandPinky3, ...) being no nodes there. Now it builds Anny on her game_engine rig (MPFB2's, shipped with her) in her own A-pose and writes what projects/psx/export.py writes for a psx person: the 52 joints in bones.ts's order with parents, heads and tails (a finger's thickness too), Root's weights on the pelvis, each vertex's four heaviest, body.glb's bones nodes of those names, landmarks (eyes from her default rig, which has eye bones) and the surface samples; no skin, bind or follow. The graph paper, the hull, joint.glb and the presets are as they were. The issue's steps on the adult preset: 1.626 m, 52 joints, 1,588 surface samples; the render of held(adult, { upperarm_r: [-0.45, 0.25, 0.9] }) at frame 30 draws the arm raised with the skin bending cleanly, and the rest pose stands in the A-pose. The characters guide's held example and its Why name the game_engine joints, and character.tsx's header the rig 2026-11-10 17:38:21 -08:00
shinyobjectz 668ae2eb08 Docs: every SDK prop, field and member described on raea.io/docs, and the reference check fails on a missing one
The SDK reference's tables had 1,476 empty cells. Each prop, field and class member the pages table now has a doc
comment in its source, or Bevy's own field doc where the SDK mirrors a Bevy type:

- doc comments on 773 declarations across 84 SDK files (song maps, goo and rigid bodies, matchmove, the clock and
  timeline, state machines, materials and their extensions, the 2D shapes, bevy_ui and feathers wrappers, colours)
- inline prop types pulled out as named, documented interfaces (EchoesProps, DaylightProps, UiScaleProps, ...), so
  each prop can carry its own doc
- types raea-bevy-sdk generates from raea's crates (/** raea_core_animate::spec::AnimKey */) take their field docs
  from the Rust source, shown as raea's ("Rust: ..."), not Bevy's; core/animate's spec.rs gains the missing ///
- a props type (StandardMaterialProps) takes its component's @bevy fields; the colour classes gain their @bevy tags
- tools/manual-ref/sdk.ts check now fails on any prop, field or member without a description, as cli.ts does for
  flags; tools/manual-ref.sh links an export's node_modules (RAEA_MODULES) so it can run in L1's lane export
2026-11-08 20:18:08 -08:00
shane 3381690416 raea is developed here now (public-first)
This repository was an export of a private one; from this commit on it is where raea is developed. Contributions:
CONTRIBUTING.md.
2026-11-07 13:36:50 -08:00
shinyobjectz f955e031da raea 644193211 2026-11-06 17:26:46 -08:00
shinyobjectz 1dff4f0aa8 raea e699cf684509a8bbada118cc302c56e99065a680 2026-11-05 17:19:37 -08:00
shinyobjectz f675b0ad2b raea dc579e418 2026-10-31 13:15:29 -07:00