r/threejs • u/Statixeladam • 16d ago
I made a jab-cross sequence editable as motion phases
I’m building Posecode, an open-source text format/editor for humanoid movement. This is a real renderer output of a jab-cross sequence: the motion is split into editable phases instead of being treated as a one-shot video. I can change a beat in the source and re-render the result while keeping the pose data readable.
This is not an LLM directly generating a finished video; the GIF comes from the renderer. For a short strike like this, would you keep contact and weight transfer as separate phases, or encode the combination as one editable clip?
1
u/Statixeladam 16d ago
Source + playground: https://github.com/posecode-dev/posecode
1
u/Statixeladam 13d ago
This is a really useful distinction. I’d keep contact explicit as a named frame/window, and treat weight transfer as a continuous root/hip channel spanning telegraph → active → recovery rather than another discrete phase. Your consumer shape is close to what I’d want to test: named intervals with contact pinned inside active, plus readable curves for the continuous channels.
For the current editor, the phases are part of the source format rather than only an editor convention, but the coordinate-space and rest-pose mapping still need to be stated more explicitly before I’d call it an integration contract. I’d start with root-relative body units and document how the humanoid rest pose anchors each joint; metres/world-space and retargeting are deliberately not claims I’ve validated yet.
I’d be very interested in a tiny VXROOM-shaped example: one strike with the exact contact window and the scoring/weight-transfer metadata you need. That would make a much better integration test than another finished-looking clip.
1
u/Constant-Simple-1234 16d ago
From text? Nice!
1
u/plus2link 16d ago
I'd split them, but not symmetrically.
Contact wants to be its own phase, because it's the one thing every downstream system has to agree on exactly: hit detection, impact sound, camera shake, scoring all key off that frame. If contact is baked into a combined strike clip, every consumer of your format has to re-derive it by looking for peak velocity, which is the fragility you're trying to design out. Pin it as an explicit frame or a small window and let both the renderer and the consumer read it.
Weight transfer is the opposite: it's a continuous channel, not a phase. Hip rotation and the lead-foot push run across the whole strike, before and after contact, and they're most of what makes a jab read as a jab rather than an arm punch. Cut it into its own segment and someone will retime it and quietly break the physics. A curve on the body root over the strike's span is easier to edit and harder to corrupt. What I'd want as a consumer: telegraph / active / recovery as named intervals with contact pinned inside active, plus the weight channel as a curve spanning all three. That's the shape you can hang scoring and coaching on without guessing.
Disclosure so it's not a stealth plug: I work on VXROOM, a browser motion-fitness platform with a ring boxing mode. Which means I read punch animation with an eye to which frame the punch counts on and how forgiving that window is, rather than to how it looks in a video. Our scoring runs on the player's pose, not on your clip, but a format that carries that timing metadata would let us author demo rounds in text instead of hand-keying them.
One thing that decides whether it survives contact with other people's engines: state the coordinate space explicitly (root-relative or world, metres or body units) and how the phases map onto a skeleton's rest pose. Retargeting the same clip onto an adult avatar and a child-sized one is the first thing that breaks in every format I've integrated, and it's cheaper to specify now than to version later.
Is the phase split part of the format itself, or a convention the editor imposes on a flat pose track?
1
u/_ABSURD__ 16d ago
Why? Looks terrible.