Skip to content

feat(hands): boxers that stand, move, punch and get hurt like boxers; x-ray breaks and more gore - #298

Merged
user1303836 merged 21 commits into
mainfrom
feature/hands-boxer-polish
Nov 17, 2026
Merged

user1303836 merged 21 commits into
mainfrom
feature/hands-boxer-polish

Conversation

@user1303836

Copy link
Copy Markdown
Owner

Client-only visual pass on the Hands boxers. No engine, protocol, manifest or dependency changes; the server is untouched.

Stance, footwork, idle

  • Orthodox/southpaw stance rebuilt: hips turned 39 degrees instead of a fencing blade, shorter and wider base, rear heel up, chin tucked, shoulders rolled, gloves at the cheekbones, lean decomposed along the turned trunk so he leans at the other man instead of sideways.
  • The guard reacts to range: at punching distance the lead glove draws in by the face and the base shortens so two lead feet do not tread on each other.
  • Step-drag footwork: the foot nearer the way he travels steps first, the other closes up, feet never cross, a planted foot stays put, he pivots on the lead foot.
  • Idle life per fighter (own clocks): bounce in surges, rock from foot to foot, breathing, pawing lead hand.
  • Each fighting style stands its own way (boxer, slugger, swarmer, counter_puncher; balanced is the authored stance), with a small per-player variation. A beaten man's stance decays: wider base, sinking gloves, hanging head, no bounce.
  • Out of the fight (rest walk, before the bell, verdict) fighters stand tall on nearly straight legs and walk like people.

Punches, guards, reactions

  • Punches sequence from the ground up, each class with its own mechanics; body shots change level from the knees; the other hand stays at the jaw; a miss carries on past the target.
  • High guard is a shell, low guard tucks the elbows over the ribs; slips, weave and pull move the head off the line.
  • Hit reactions: head snaps the right way, shoulders turn with it, knees buckle, a blocked shot jolts the guard.

Officials

  • Referee stands upright with hands ready, walks in strides, watches the man in trouble, bends to count, waves off overhead (slowly after a death), stands back with open hands during FINISH HIM.
  • Corner men lean over the rope and talk; at the end they mourn a dead fighter or cheer a winner. The cutman kneels and works faster on a bad cut.

Look

  • Ring lighting: one warm shadow-casting key, weak fill, two cold rims, bloom only on highlights.
  • Skin shader: light wraps past the terminator, grazing rim, relief from the scan as a bump map.
  • Trunks re-tailored above the knee; contact shadows under the boots (also on the low tier).
  • Faces: blinks, flinch on a head shot, grimace behind a power punch, gasping when spent, eyes shut on the canvas.

Violence

  • Bone breaks play an x-ray cut-in (procedural skeleton, eleven bone injuries) with its own sound and haptic jolt, and again in the knockout replay.
  • Bodies wear the fight: welts that turn to bruises and gashes where punches land, spatter on both men, blood that soaks and runs.
  • Open wounds spurt when hit again, a broken jaw sheds extra teeth, a dead man lets go (urine, bile).
  • All of it follows the blood setting (reduced, off) and reduced motion, and the x-ray is skipped on the low resolution tier.

Verification

  • npm run typecheck, npm run test:run (75 files, 1632 tests), npm run build with the committed bundle (2.94 MB, 1.46 MB gzip), npm run scan:build, npm run audit:high.
  • scripts/hands_e2e_scenarios.js cpu and finish against the real server with a GPU-backed Chromium: no client errors.
  • Looked at in the pose lab and the fixture (broadcast and close cameras): stance pairs at several gaps, each style, sparring sequences, every fatality, rest, decision.

Known limits

  • No independent review ran on this diff (the reviewers could not be started); only the low-tier shadow fix already on main was reviewed.
  • The referee can still stand between the broadcast camera and the fighters; the engine places him and the client does not yet fade him.
  • A power punch's glove glow still washes out the puncher's head for a few frames while it loads.

…ottom tier

- At the low tier the key light's shadow map was disposed and left null. three then binds a stand-in
  depth texture with no comparison function to the shadow sampler, which ANGLE refuses, so every lit
  mesh (ring, crowd, fighters) stopped drawing on a slow or busy client.
- The shadow map is now swapped for a 16 pixel one drawn once, never left null; castShadow is still
  untouched, so no program is recompiled.
…lish

# Conflicts:
#	web/hands/src/lab/model-lab.ts
#	web/hands/src/render/graph.ts
#	web/hands/src/render/poser.ts
# Conflicts:
#	web/hands/src/render/renderer-gpu.test.ts
…r-polish

# Conflicts:
#	web/hands/src/render/graph.ts
…r-polish

# Conflicts:
#	web/hands/src/render/graph.ts
…olish

# Conflicts:
#	src/intelstream/hands/static/assets/hands.js
@user1303836
user1303836 merged commit be0712f into main Nov 17, 2026
6 checks passed
@user1303836
user1303836 deleted the feature/hands-boxer-polish branch November 17, 2026 13:45
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