Skip to content

Motion, continued: every open motion issue, in full - #939

Open
nicolas-maman wants to merge 437 commits into
mainfrom
feat/motion-next
Open

nicolas-maman wants to merge 437 commits into
mainfrom
feat/motion-next

Conversation

@nicolas-maman

@nicolas-maman nicolas-maman commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Every motion issue still open, implemented in full, in this one pull request, continuing #921 (merged at 61964ad): #853 and its milestones, #903, #907, #909 to #911, #922, #929 to #938, #940 to #974. 32 of them are met here and closed by hand so far (listed at the end).

Progress at a glance (updated 2026-11-23)

A box is ticked when that step is committed and its suites pass. Work on an agent's branch lands on this PR only once its full gate is green.

Integration (agent/integrate c3519283: the PR head, agent/asset with the crawl, agent/crash, agent/getup and agent/gait merged; the line every agent now works from)

The owner's review, 2026-11-25 (plaza and showcases on agent/integrate a6e0fad1)

README and docs (#1085, the owner's review 2026-11-25: the pictures don't showcase the engine)

  • hero: the plaza at golden hour as a car strikes a walker, bystanders turning, feet planted on the kerb
  • a fall and get-up strip or loop; feet on the kerb, ramp and steps; physics in the street replacing the cube pile; the crowd at scale; the editor
  • the side demos kept in a smaller row; every picture from a repo scene with its command line, checked by camera sweep, signed off by the owner
  • docs/motion and docs/physics.md brought up to this PR (awake knockdowns, get-up planning, the crawl, crash reactions, the physics asset), with the suites' numbers

Dependencies

#858 physics asset (agent/asset b8635acb, gate 115 of 118)

Owner's review 2026-11-20

Owner's review 2026-11-22

On this branch so far (to 2026-11-04)

Since 2026-11-05 (pushed, CI green unless said)

Owner's review 2026-11-20 (in every loop tick)

  • Owner's review: arms look wrong when bodies crash against cars #1038 arms look wrong when bodies crash against the cars. Found (on Owner's review: arms look wrong when bodies crash against cars #1038): a struck person is handed over fully LIMP (springs off), so the arms are ropes: elbows slam stop to stop for 0.3 to 1.0 s at up to 54 rad/s, shoulders at or past their limits (twist up to 33% past), upper arms 72 to 80 degrees behind the trunk, a 73 rad/s snap at the unblended release, wrists frozen; the startle and protective reach run only POWERED. Design: a conscious knockdown POWERED at low tone with its startle and reach (fully limp kept for death), the release blended, a procedural wrist; built after M4 physics asset and physical animation with per-body weights (L4) #858 lands, since it lives in the same modules.

  • Owner's review: limping makes no sense; an injured gait must come from how a body carries its weight #1039 limping makes no sense, feet sliding and both off the ground: a limp must come from how a body carries its weight (antalgic gait: less stance and load on the hurt leg, the trunk over the good leg, never both feet off the ground walking), after an adrenaline window; the engine maps a limb's load capacity and pain to gait, the game decides the injury. Found (on Owner's review: limping makes no sense; an injured gait must come from how a body carries its weight #1039): today's "limps" are not injuries but locomotion defects: (A) a one-frame drop of the mover's go sends walk to a stop with no way out, so a figure is frozen on the stop's frame for 12 to 16 s while carried at 0.7 to 1.2 m/s, both feet off the ground 31 to 64% of it; (B) a locked stance foot hovers 11 to 15 mm because the lock holds x and z only (17 to 29 walk-pace flights a seed); (C) a 20% left/right contact asymmetry from the IK; and the meters read the foot's pad, which sits 16 to 22 mm up in stance, so stance and toe-skate counts miss most stances. On agent/gait: the meters read the lowest sole within 5 mm (53542e6d; a swinging sole is held at 15 mm, so the old 15 mm counted swings as stances), and the stuck stop is fixed (72ecab87: the crowd steering's ledge stop dropped standing still from the choices, so go flickered; a stop is now kept once chosen and left for its start or the walk when go returns; the longest stop with go on went from 16.2 s to none). The honest meter shows real defects the pad hid: 18 suites' 5 mm toe-skate checks fail (a toe slides 15 mm in the frame its lock lets go), and the drawn foot rocks onto its toe 50 ms after heel strike and never stands flat (21 to 30 walk-pace flights a seed). The asymmetry was mostly the old meter (the run is now within 5%). Fixed since (7921c557): a toe lock's ankle put-back now eases out with its toes, so a tip leaves its lock from rest (test_metrics' locked walk 13.22 -> 2.64 mm a stance). Found: the mannequin's landing slides 15 mm because a swinging foot reaches contact height while the clip still carries it at 0.45 m/s. Since (4a11ddab, 3f52e274): one definition of on the ground for the meter, the feet and the plaza (within 5 mm, not rising), a foot held where it touches, the heel rocker (the heel held from strike to foot flat, the lock passing to the toe only once its sole is down; Perry and Burnfield 2010), a step's landing held the same way, and every foot measure reading the point the foot bears on (metrics.meter_bearing). Against 7921c557: 31 checks from fail to pass and none the other way, 14 of the 24 foot suites pass (7 before), the six feet suites pass, plaza toe skate 1.02 -> 0.51 cm a walker-second. Since (ec5abf80, on agent/gait, not pushed): a bearing foot stays on the ground for its whole contact, the pelvis dropping to the leg's reach, and a toe-locked foot is peeled about its real tip. Walking flights fall from 21 to 32 a seed to 4 to 10, on flat ground from 11 to 24 to 0 or 1. 16 of the 24 foot suites pass, against 14. A step or slip that waits until the other foot bears was tried, not yet committed: walking flights 4 to 10 a seed -> 3 to 6, slips to 0 or 1, the 125.6 mm start skate to 20.5 mm. Two of its rules break suites when they let go. The worst skates come from the take's own swing 43 to 45 mm under the floor at slow blended starts, lifted by a clearance with no source. Since (6c503aca, 9d6b0b11, 5ebbb0fb, on agent/gait, not pushed), with the 24 foot suites check for check as before:

    The plaza's worst toe skate is lower or equal on every seed (125.6 -> 23.2 mm on seed 2). Holding a single-support foot waits on A start take is outrun by its capsule: at 1.86 m/s from a stand, the stance foot's lock ends 0.3 m from the take's foot within one stance #1050, a start take outrun by its capsule. Next: the leg flickers, which are up 7%; the edge flights; the eight suites; the rebase and the gate; Feet: lock only a foot that bears the body's weight, not one merely touching the floor (lying, kneeling, sitting, getting up) #1047; then the injured gait (a per-leg stance-phase warp, the pelvis over the good foot, an additive posture layer, a default analgesia-then-compensation time course)

Owner's review 2026-11-22: the gaps to world class, all done in this PR before it merges

What he saw:

What he asked about, with what is missing:

In progress (one agent each, in its own worktree)

Order of work from here

The plan is in #853, "Road to the merge and to Siltreach".

  1. Motion: a stop from a 3 m/s run takes 2.07 s, braking at a walk's arrive rate #1024 landed (bea4c99, CI green); Docs: world-class documentation of the motion engine in docs/, one structure, every example built #1027's docs pushed (a6e1b03); next M4 physics asset and physical animation with per-body weights (L4) #858 with the aephysics pin and netanim: late joins stay exact through simultaneous contacts (aephysics canonical begin order, body order keys) #1030; then Balance: a shoved figure rocks on its feet like a bottle instead of correcting with its legs #1025.
  2. The owner's 2026-11-19 review: Physics: joints bend past what a body allows in crashes; model breaking points and joint failure, reported to the game #1026 joints within range and breaking, reported to the game; Motion: limbs on the ground are not held when prone or crawling; a crawl's stop slides its feet 170 mm #1031 prone limbs held; Motion: turning stop captures are classed but never played; a stop that turns plays one, its turn kept #1029 turning stops; Docs: world-class documentation of the motion engine in docs/, one structure, every example built #1027 the motion docs; Motion code: a review against Aether's design, so the engine uses the language at its best #1028 the Aether design review.
  3. get-up: two knocked figures getting up side by side are drawn inside each other for up to 2 s #835 to land ikrig: toes_flat bends a lifting foot's toes 0.67 rad in one frame (a toe flick, the plaza's fastest joint) #1017, Owner's review: the head sometimes hangs forward #1013, Owner's review: hands hang limp at the wrists, as if the wrists had no tone #1011; Physics: joint drives far stiffer than published human data, and blows land in one step #1023 joint drives with one re-tune.
  4. The owner's 2026-11-20 and 2026-11-22 reviews: Owner's review: arms look wrong when bodies crash against cars #1038 and Owner's review: limping makes no sense; an injured gait must come from how a body carries its weight #1039 (in progress), Owner's review: a figure lying face down after a crash flips over at an abnormal speed before it gets up #1041 and Owner's review: spinning a person would never do, and get-ups that follow no reason #1042 (get-ups and spins, measured first), Showcases name what each figure shows, on screen #1044 labels, Recorded falls, transitions and get-ups end to end: one scene from walk to struck to fall clip to ragdoll to get-up clip to walk #1045 recorded falls end to end, Explosions: a blast that throws, stuns and hurts people as a real one does, generic for any game #1043 explosions.
  5. M6 migration onto the animation pipeline; old writers retired #860's last retirements (motion's keyed get-up, sit, kneel, lie, hold, eat), then the merge gate.

Every motion issue, in full

#854 M0, ground truth

  • tests/fixtures/people, as the issue lists (each with its CC0 terms and sha256; also 100STYLE, CMU and VRoid)
  • metrics: 14 measures in ae3d.metrics; left: ROOT_DRIFT as a measure, one exported bound per measure, the last inline copies (legs_read, sole_low)
  • a viewer tool: the figure with a skeleton overlay, the clip list, scrubbing, two figures side by side (source and retargeted), the metrics on screen (tools/anim_viewer, 38e4cd8; CI runs it with the showcases)
  • the old motion modules frozen: bug fixes only (05fc149: docs/animation-pipeline.md, a FROZEN header on motion, locomotion, feet, lookat, idle, posing, anim, handover)

#855 M1, skeleton, pose, clips, retargeting, root motion

  • skeleton: up to 256 bones, skinning's 96-bone cap lifted (1df0ec6: palettes from skin rows on Vulkan and GL; GPU against CPU 0 channels apart on both; a 96-bone figure's cost unchanged, scattered bones 10 times faster), a humanoid map onto the UE5 names
  • pose: flat local transforms; local and model space; blend, additive, mirror (mirrored twice within 0.001 degrees and 0.001 mm; test_anim_pipeline)
  • clip: skeleton-indexed tracks; a root track; events; contact and sync markers found at import (footfalls one a foot a cycle; takes resampled at a fixed rate, so a sample needs no cursor or key search)
  • retarget: rest alignment, chain scaling, pelvis height, feet kept on their contacts (826cff3: bone directions within 1.6 degrees; planted toes within 1.2e-12 mm a stance at idle, walk and jog on three rigs, were 1.05 to 16.3 mm; loop seams 0 mm). Hands on their contacts: not yet shown
  • root motion moving the capsule, or held for in-place use (a roll retargeted: 4.99143 of 4.99143 m on both mannequins, 5.53257 of 5.53257 m on the box man; stopped at a wall)

#857 M3, IK and constraints

#858 M4, physics asset and physical animation

#859 M5, ragdoll and get-up

#860 M6, migration

  • the plaza, the motion showcase and the editor's figures on the new pipeline
  • Siltreach told how to move, with the SHAs
  • eating with a bowl on the pipeline: the bites to the mouth over a held carry, as test_eat holds motion.eat
  • retired: per-node clips and string lookup, every direct writer of skeleton bones, locomotion's second foot lock, motion's keyed get-up, sit, kneel and lie, hold and eat (ae3d.idle and ae3d.lookat retired onto the animator at 887fb15, ae3d.feet and ae3d.locomotion at 1cd0d0d; CI fails on any import of a retired module)

#861 M7, behaviours on physical animation

  • balance, catch steps, staggers, protective falls, crawl and writhe on L4, the animation as the reference, measured against L5 and shipped only where they look better

#862 M8, crowds and animation LOD

  • crowd pose banks baked from the graph's clip data (0cbba27)
  • update-rate LOD for distant figures (0cbba27)
  • hand-over between a crowd instance and the full graph by pose snapshot (0cbba27)
  • a cost per figure per frame at each LOD, against a 2,000-figure budget (1a268f4; 3.1 ms against 2 ms planned, still open)

#907 the generic pieces fighting is built on (rescoped: the moves, their order, timing and damage are the game's)

#903 the character component

  • the showcase's figures each set up in a few lines through it (all eight, 6d524e6); the README's animation example the real code (examples/people)
  • every check in test_anim_pipeline and test_ik_constraints holding through it (so far through it: walking, stopping, strafing, turning on the spot, looking, aiming, stairs, a ramp, seats; test_humanoid 15, test_use 4)
  • states, takes and transitions declared as data: ae3d.animgraph (test_animgraph)

#909 the generic pieces two figures need (rescoped: the scenes themselves are the game's)

#910 faces

  • morph targets imported and drawn on both renderers, their weights as pose channels (487dfff)
  • an ARKit-like face set mapped as the body's humanoid map is (e444397 maps it; no CC0 face with ARKit's 52 shapes exists to commit; VRoid's own set is mapped for blinks and vowels)
  • procedural blinks and saccades, eyes turned by the look IK (834e998, 97c2dc2)
  • visemes from a voice track (dddae7f: five vowels; consonants and recorded speech left)

#911 animation over the network

#922 the get-up after a trip at a run

The owner's review, 2026-11-19, and what it opened

Part of

Closed by hand once met on this branch (the PR says Part of, never Closes):

nicolas-maman added a commit that referenced this pull request Nov 4, 2026
#921 merged without its changes note; this one says what it brought, with
the numbers it was measured at, and what #939 has added since.
nicolas-maman added a commit that referenced this pull request Nov 5, 2026
macos-2 ran out the 54 minutes of its Run CI on #939, cold (fc0c124) and
warm (62b7315), the leak check unfinished, with the suites the PR adds:
the leak tier is split over macos, macos-2 and macos-3. AETHER_REF
v0.882.0 (0.881's core benchmarks, 0.882's release of a string a failed
list add was handed).
This was referenced Nov 5, 2026
Its 359 programs (tests, examples, examples/docs, tools) compile clean
on it; natives, jobs, motion, physanim, net_anim, anim_pipeline,
determinism, character and animator_back pass. The release fixes
get.sh's identity regex on Git Bash and std.casper linking on FreeBSD;
nothing ae3d calls.
Main's 0.933 and 0.935 bumps kept with their notes; this branch's 359
programs compile clean on 0.935 and the key suites pass.
TLS PSK, TCP deadlines and cooperative task contexts; nothing ae3d
calls. All 359 programs compile clean and the key motion suites pass.
Main's 0.936 note kept, with this branch's checks on it.
Returned views tracked by their mark, GCC's inline budget, emit-lib
result types and build fixes; aephysics 41d0dff needs it. All 359
programs compile clean and the key motion suites pass.
On macOS, clang warns "expression result unused" on 0.937's C for a
discarded slice call in aephysics' reserve_scratch, and 37 suites fail
to build with warnings as errors. Aether's fix is in its PR #3820.
Carries aether#3821's fix: a discarded slice call is emitted as a
(void) statement, so macOS's clang builds aephysics clean again.
nicolas-maman added a commit that referenced this pull request Nov 23, 2026
… cover after the behaviours

- The opaque prepass draws depth with no pixel shader, the device's fast
  depth path: one that could discard cost the prepass what it saves, and on
  a light scene (campfire) the frame was slower with it. Cut, wounded and
  damaged models stay out of it. Campfire now runs the same either way
  (112-120 fps); the 60-layer stack 4.3 -> 0.3 ms.
- test_scenedsl compares the written code to the golden with its numbers to
  twelve significant digits: a cone's cosine rounds differently with #939
  merged. It still fails on a changed name or a sixth-digit number.
- test_vk_prepass times each side as its best of eight frames.
- say_cover runs at the end of say_perf, clear of #939's say_behaviours, so
  the two branches merge without a conflict.
HTTP client connections owned by their caller, and a plain const
array's error names the bracket form; nothing ae3d calls.
Main's 0.939 note kept in place of this branch's shorter one; this
branch's 0.937 and 0.938 notes kept.
0.940 passes --param relation-block-limit=0 to every GCC compile against
a GCC miscompile of float comparisons beside a NaN (aether#3848), and
'ae cflags --cc' gives a named compiler's flags. build.sh, the editor's
build and the scripts' build ask with --cc "$CC", so GCC gets the param
and clang is not handed it; an older ae without --cc is asked as before.

Part of #1072.
nicolas-maman added a commit that referenced this pull request Nov 24, 2026
…s at 10

On Vulkan the draw set's emissive map moves from binding 10 to 11: the
motion branch (#939, #855) reads skin rows at 10, and both live in one draw
set once the branches meet. Shaders regenerated; test_emissive,
test_backend_parity and test_gpu_lit pass. The Windows define for scripts'
weak symbols sits in its own block in build_script.sh, apart from the
runtime-library line the motion branch rewrote.
Conflicts resolved keeping both sides:
- the draw set holds the skin rows at binding 10 (storage buffer, both
  stages) and main's emissive map at 11 (fragment): BINDINGS 7, the pool
  5 images and 1 storage buffer a set, the emissive write at index 6;
- shaders.lit: the draw block keeps the skin base words and main's
  emissive and emissive_map (DRAW_COUNT 94), images skin_rows and
  emissive_map (IMAGE_COUNT 14);
- vulkan: a removed model lets go of its materials and its ray skin;
- build_script.sh: ae_cflags --cc (#1072) with main's NATIVE_DIR.
vkscene, vkspirv, vkmsl and the quoted Metal are regenerated by
tools/generate_shaders with glslang 16.6.0, not hand-merged; --check:
134 generated files current, 72 shaders, 1051188 B of SPIR-V,
1349 offsets verified against glslang.

The generator runs glslang as glslangValidator or as glslang, 16.6.0
either way, and scripts/glslang.sh fetches Khronos' Windows x86_64 build
(sha256 checked) as well as Linux's. Part of #1076.

AETHER_REF v0.941.0: an account trip marked on every account from the
one in use up to the one that ran out; nothing ae3d calls.

Checks (Windows, Aether 0.941.0): natives build; 379 programs under
tests, examples and tools through aetherc, 0 failed, 0 warning[;
test_motion, test_physanim, test_character, test_anim_pipeline,
test_determinism, test_net_anim, test_animator_back pass; test_gpu,
test_gpu_lit, test_gpu_layouts, test_emissive, test_skinned_render,
test_vk_rings pass, test_vk_msl skips (macOS only) as on main.
A batch sent from main to a core whose channel is partly full waits for
room instead of sending the rest one message at a time (#3860).
std.math's scalar functions inline (#3852): on x86-64 MinGW math.sqrt
is sqrtsd, correctly rounded where the CRT's x87 sqrt rounded twice
(aether#3027); a slice's release inline again for a view (#3853).
The only conflict was the Aether pin's changelog in ci.yml: both sides
pin v0.945.0; both notes are kept.
…1087)

With the shadow cascades (#1084), a frame of 600 tiles on a CI runner's
llvmpipe takes seconds, and the timed sweep ran to the suite's 300 s
timeout. The warm-up's own scene pass now says what kind of renderer this
is: over 250 ms (bench_black_hole's guard) is software, and the sweep is
skipped with a note. The triangle counts, which check the culling, are
printed either way. On an RTX 4070 Ti the sweep runs as before: scene
pass 2.76 ms drawn whole, 0.70 ms culled.

Part of #1087
…a program's own draws, bench_instance_cull's software skip)

Two conflicts. bench_instance_cull.ae: main's version is taken; it makes the
same software-renderer skip as 42e4cce and reads AE3D_BENCH_FRAMES as well.
ci.yml: both sides pin v0.946.0; both changelog notes are kept.
…asked of both sides (#1101)

ci.sh printed a failing suite's FAIL lines and last 12 lines and a passing
suite's name alone, so the compare line ("two lights: opengl lit N, vulkan
lit M, D of T channels differ, worst W") never reached the log. A suite's
lines beginning "ci: " are now printed under its name, pass or fail, in the
suites and under the validation layer (suite_notes); test_backend_parity
prints every compare so, with its bound, and a failing compare prints
where the frames differ (8 by 6 cells).

Measured, Mesa 26.1.8 from MSYS2 (llvmpipe and lavapipe, the CI's drivers
one minor version on), 320x180 env as CI:
  main 57c3c34, 4 runs:   two lights 2180 of 147456, shadows 2149, pass
  branch 355ddcc, 4 runs: two lights 2180 of 147456, shadows 2149, pass
  every compare's line bit-identical between the two sides and across runs
  but "clouds over the skybox" (wall-clock cloud time, 2401 to 2423).
RTX 4070 Ti: two lights 2327 on both sides; both sides fail the same five
#1021 normal-map checks and nothing else.
Bound 5% = 7373 channels. The lamp adds 31 differing channels to the
shadows case on Mesa (42 on NVIDIA) while its light changes 15316 (GL) and
15326 (VK) channels of the frame: a CI failure past 7373 is a region lit
differently on one side, not the key light's shadow edge the comment gave,
which stopped cutting lamps with their own maps (#490). The test asked the
lamp to reach Vulkan only; it now asks OpenGL too (colour 8325319 to
8775535 on Mesa, 2% asked, 5.4% given).

The bound is unchanged: no edge to derive it from.
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