Centre-of-rotation skinning (optimised CoR, Le & Hodgins 2016) as an option: no candy-wrapper wrists or collapsed joints, LBS-compatible, default off #1581

Open
opened 2026-11-17 10:36:45 +00:00 by sky_line · 0 comments
Owner

Add optimised centre-of-rotation (CoR) skinning (Le & Hodgins, SIGGRAPH 2016) as an option for rigged mesh, alongside today's linear blend skinning (LBS). Default off.

Why

LBS averages bone matrices, so twisting and sharply bent joints collapse:

  • forearms and wrists pinch into a "candy wrapper";
  • shoulders and hips lose volume;
  • elbows and knees fold thin.

These show on Bento hands and fingers, tails, necks and quadruped legs (Open Pony). Plain dual quaternion skinning (DQS) fixes the collapse but bulges at bends, and it cannot carry the bone scale SL depends on (shape sliders, fitted-mesh collision volumes, animated Bento scale). CoR keeps the volume without the bulge, and it's built for content weighted for LBS, which is all SL content.

How

  • Precompute, once per mesh at load: each vertex's optimised centre of rotation, from its bone weights and the bind pose (weight-similarity integral over the mesh). Run it as a GPU job or off the main thread, and cache it with the mesh and skin data, keyed like the skin store (mesh id).
  • Per vertex at skin time:
    • rotation = normalised quaternion blend of the bones' rotations;
    • translation from the LBS-transformed CoR;
    • scale stays on the LBS path, so fitted mesh and sliders behave exactly as today.
      The cost is a handful of extra ALU per vertex in the existing GPU skinning path. The RT BLAS refit consumes the skinned positions unchanged.
  • One viewer-wide switch for all avatars, so a body and the clothes fitted to it never use different methods and separate at joints.
  • It's local only: no wire change, and others keep seeing their own viewer's skinning.

Done when

  • The option (Preferences > Graphics, persisted, default off) switches live.
  • With it off, output is bit-identical to today and costs nothing.
  • With it on, no mesh vanishes or explodes; a mesh without CoR data yet falls back to LBS until its data is ready.
  • An A/B set of shots, LBS against CoR, of the Open Pony, the common human mesh bodies, Bento hands (fist, spread, twisted wrist), a tail, and fitted-mesh clothing over a body, with shape sliders at extremes.
  • The precompute time per mesh and the extra VRAM are logged and bounded.

Risks

  • Content whose weights or helper bones were built to hide LBS pinching may over-correct. The A/B set is how we find out before any default change.
  • Very high-vertex meshes: the precompute must be budgeted and never stall the frame.
Add **optimised centre-of-rotation (CoR) skinning** (Le & Hodgins, SIGGRAPH 2016) as an option for rigged mesh, alongside today's linear blend skinning (LBS). **Default off.** ## Why LBS averages bone matrices, so twisting and sharply bent joints collapse: - forearms and wrists pinch into a "candy wrapper"; - shoulders and hips lose volume; - elbows and knees fold thin. These show on Bento hands and fingers, tails, necks and quadruped legs (Open Pony). Plain dual quaternion skinning (DQS) fixes the collapse but bulges at bends, and it cannot carry the bone scale SL depends on (shape sliders, fitted-mesh collision volumes, animated Bento scale). CoR keeps the volume without the bulge, and it's built for content weighted for LBS, which is all SL content. ## How - **Precompute, once per mesh at load:** each vertex's optimised centre of rotation, from its bone weights and the bind pose (weight-similarity integral over the mesh). Run it as a GPU job or off the main thread, and cache it with the mesh and skin data, keyed like the skin store (mesh id). - **Per vertex at skin time:** - rotation = normalised quaternion blend of the bones' rotations; - translation from the LBS-transformed CoR; - scale stays on the LBS path, so fitted mesh and sliders behave exactly as today. The cost is a handful of extra ALU per vertex in the existing GPU skinning path. The RT BLAS refit consumes the skinned positions unchanged. - **One viewer-wide switch** for all avatars, so a body and the clothes fitted to it never use different methods and separate at joints. - It's local only: no wire change, and others keep seeing their own viewer's skinning. ## Done when - The option (Preferences > Graphics, persisted, default off) switches live. - With it off, output is bit-identical to today and costs nothing. - With it on, no mesh vanishes or explodes; a mesh without CoR data yet falls back to LBS until its data is ready. - An A/B set of shots, LBS against CoR, of the Open Pony, the common human mesh bodies, Bento hands (fist, spread, twisted wrist), a tail, and fitted-mesh clothing over a body, with shape sliders at extremes. - The precompute time per mesh and the extra VRAM are logged and bounded. ## Risks - Content whose weights or helper bones were built to hide LBS pinching may over-correct. The A/B set is how we find out before any default change. - Very high-vertex meshes: the precompute must be budgeted and never stall the frame.
sky_line added this to the Slipstream project 2026-11-17 10:36:45 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sky_line/Slipstream#1581
No description provided.