REDCODE / DOCS

Animations: a game animation played on its rig

Draft 0.6, 2026-11-20, agreed with the owner (decisions below), the A3 plan included. A3 is built, hand test pending (A3 as built). A1 is built and passed its hand test on 2026-11-06 (testing). A2 is built on REDbridge 0.13.0 and passed its hand test on 2026-11-15, with three fixes to the framing (testing). Asked for in REDcode issue #21 by EDGEquest, whose Animation picker needs a preview without a 3D viewer of its own. It is the “Animations” step that View (C5) deferred. Not urgent: EDGEquest needs it when its happenings around V (Q8 H4) are planned.

What the game gives

Checked on game 2.5 with REDbridge 0.11.0, on the issue’s prologue Trauma Team files (scratchpad probe21.mjs, 2026-11-05):

File Rig it names Animations project.export
synced__q001_00c__trauma_av.anims av_zetatech_atlus_skeleton.rig 6: the AV lands, idles, arrives and leaves GLB, 0.25 s, 23 bones, 6 clips
q001_00c_trauma_arrives_male_average.anims man_base.rig 13: the crew’s idles, looks, shifts and points GLB, 0.3 s, 71 bones, 13 clips

Steps

Step What Bridge
A1 The animation view An .anims opens in a new CR2W editor mode, Animations, with Tree one click away as for meshes. On the left, the file’s animations with name, length and frame rate, and the rig. On the right, the skeleton in the 3D view, as bones and joints, playing the one picked: play and pause, a scrub bar with the time, loop, speed. REDcodeApi.openAnimation(path, animationName?) opens it at one animation, for EDGEquest’s Preview button. None: project.export as it is, through the export cache
A2 A body on the rig The skeleton wears a body: the meshes of a character or vehicle entity the caller passes (openAnimation(path, name, { entity })), or the base body of the rig’s kind when none is passed (man_base and woman_base to the base male and female bodies; a vehicle rig to nothing, so the skeleton stays). A Root motion switch moves the whole rig through the scene, as the AV’s landing needs. A REDbridge export option for meshes with their rig, and one for root motion in animations: a minor release
A3 Synced sets The files of a synced set (synced__q001_00c__trauma_*.anims: the AV, the pack and the crew) play together on one clock, each on its own rig, placed where they are relative to each other. Not “probably none” after all: syncTrajectory keys and a root motion fix, a minor release (see the A3 plan)

Each step is a commit or two with a hand test on the owner’s machine, as before.

A1 as built

Found on the way: a vehicle rig hangs every bone off one root, so the AV is a star of lines, not a shape. Bones alone say little for vehicles, and root motion is off, so the AV’s landing does not move through the air until A2. Some long lines on a human rig look like helper bones from the floor: unverified.

A2 as built

Built 2026-11-15 on REDbridge 0.13.0, which took A2’s part of REDbridge #14 (project.export options rig/rigs, appearance and rootMotion). Checked on game 2.5 before the hand test (scratchpad a2probe.mjs, a2mod.mjs, and a2harness.mjs in Chrome with the real bundle):

Body Export Bones the clips drive that it has
Base male body, t0_000_ma_base__full.mesh on man_base.rig and man_base_deformations.rig 1.2 s the first time, 2.1 MB, 187 joints 71 of 71 (the crew’s clips)
Base female body, t0_000_wa_base__full.mesh on woman_base.rig and woman_base_deformations.rig 0.2 s, 2.2 MB, 187 joints 71 of 71 (two woman_average NPC clips)
The Trauma Team paramedic, corpo__ep1_traumateam_ma.ent in corpo__traumateam_ma_paramedic__lvl1_01 1.6 s, 13.8 MB, 22 meshes on 512 joints (its far proxy left out) 71 of 71

Found on the way:

A3: what the game gives

Probed on 2026-11-19 on game 2.5 with REDbridge 0.15.0, on the prologue’s Trauma Team set in base\animations\quest\main_quests\prologue\q001\q001_00c_rescuing_girl\anim\synced\ (scratchpad a3origin.mjs, a3frame.mjs, a3sync.mjs with a probe method in a scratch bridge build that was not committed, and a3check.mjs):

A3 plan

Agreed with the owner on 2026-11-19. Its REDbridge part is REDbridge #19; the root motion bug is reported to WolvenKit as WolvenKit #3304.

Part What Where
REDbridge anims.sync(path, clips?): for each clip, its extra joints’ names and their position and rotation keys, in seconds and glTF axes. And project.export with rootMotion puts spline root motion keys in seconds. A minor release REDbridge #19, a request issue as A2’s part was #14
REDcode A synced clip shows its set under the list: each member’s role and file, from the folder’s anims.info. Play the Set adds each member to the scene on its own rig, placed from the sync tracks, on one clock with one scrub bar. Each member gets the body A2 gives its rig (the base body for man_base and woman_base, bones for vehicles and props), and a check box to hide it. Root motion is on while the set plays. The opened clip’s member stays at the origin. openAnimation(path, name, { set: true, entities: { <role>: { entity, appearance } } }) gives members bodies of their own src/animsGlb.ts, webview/animViewer.ts

A member that shares no track with the opened clip is placed through another member that does. One hand test: the Trauma Team landing and take-off, the AV and the two soldiers together, and the medics’ set with the trauma pack.

A3 as built

Built 2026-11-20 against a scratch build of REDbridge’s main (e1591e4, #19, to be released as 0.17.0), hand test pending (testing). Checked before the hand test: 62 unit checks (6 for A3), the solve on the whole Trauma Team folder (scratchpad a3pairs.mjs, a3solve.mjs), and the view in Chrome over the real bridge (a3harness.mjs).

Found on the way:

Decisions

Agreed with the owner, 2026-11-06:

  1. The order: A1 first (bones only, no bridge release), then A2, which needs the bridge release, then A3.
  2. A body when the caller passes none: the base body of the rig’s kind for human rigs. A vehicle rig keeps the skeleton.
  3. A3 Synced sets is in this design.
  4. The view is a mode of the CR2W editor, as the mesh viewer is: the same three.js bundle and toolbar.

Agreed with the owner, 2026-11-15, for A2: bodies come without textures for now, and root motion is off at first.

Not in this design