{
 "id": "dual-quaternion-skinning",
 "title": "Dual quaternion skinning",
 "aliases": [
  "DQS"
 ],
 "domain": "simulation",
 "subdomain": "skeletal animation",
 "stage": "simulation",
 "realtime": "realtime",
 "platforms": [
  "webgl2",
  "webgpu",
  "desktop-gpu",
  "cpu",
  "unity",
  "unreal",
  "blender"
 ],
 "year_introduced": 2007,
 "inputs": [
  "mesh",
  "skeleton"
 ],
 "outputs": [
  "mesh",
  "animation"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Skinning that blends bone rigid transforms as dual quaternions instead of matrices, preserving volume at twisting joints at nearly linear-blend cost.",
 "how_it_works": "Each bone's rigid transform is a unit dual quaternion (rotation plus translation encoded together). Per vertex, the weighted sum of its bone dual quaternions is computed, with sign flips so all lie in the same hemisphere as the first, then the sum is normalised. The result is a rigid transform applied to position and normal. Because blending happens in a space that represents rotations on a curve rather than by averaging matrices, a twisting limb rotates rather than shrinking in the middle. Scale is not representable, so non-rigid bone scaling must be handled separately, and blending between very different rotations can create a slight bulge.",
 "when_to_use": "Choose it for twisting limbs, forearms, necks and tails where candy-wrapper artefacts show. Prefer `linear-blend-skinning` when the extra shader work and the 'joint bulge' side effect aren't worth it, or when bone scale is used, and pose-space deformers when artistic control of corrective shapes is the goal.",
 "cost": {
  "class": "cheap",
  "notes": "Slightly more than LBS: dual quaternion normalisation per vertex."
 },
 "failure_modes": [
  "Joint bulging when blending large relative rotations",
  "No non-uniform scale in bone transforms",
  "Hard to combine with existing LBS-based corrective/blend-shape pipelines",
  "Needs sign-consistency step or flips occur"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "doi:10.1145/1230100.1230107",
   "type": "paper",
   "title": "Skinning with dual quaternions",
   "authors": [
    "Ladislav Kavan",
    "Steven Collins",
    "Jiří Žára",
    "Carol O'Sullivan"
   ],
   "year": 2007,
   "venue": "Proceedings of the 2007 symposium on Interactive 3D graphics and games",
   "url": "https://doi.org/10.1145/1230100.1230107",
   "ids": {
    "doi": "10.1145/1230100.1230107"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1230100.1230107",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1230100.1230107",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1230100.1230107",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1230100.1230107",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/1230100.1230107",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "kavan2007skinning"
  }
 ],
 "presets": [
  {
   "id": "dual-quaternion-skinning-specimen",
   "title": "Toy side view: dual-quaternion twist keeps volume while linear blending pinches",
   "runtime": "glsl-fragment",
   "params": {
    "TWIST": 3,
    "RADIUS": 0.11
   },
   "code": "// Toy side view of a twisted tube: dual-quaternion blend (top) keeps its radius, linear matrix blend (bottom) pinches.\nconst float TWIST = 3.0;\nconst float RADIUS = 0.11;\nfloat lbsR(float w) { return RADIUS * sqrt((1.0 - w) * (1.0 - w) + w * w + 2.0 * w * (1.0 - w) * cos(TWIST)); }\nvec3 tube(vec2 p, float cy, float rad, vec3 base) {\n    float y = (p.y - cy) / max(rad, 1e-4);\n    vec3 c = vec3(0.0);\n    if (abs(y) < 1.0) {\n        float z = sqrt(1.0 - y * y);\n        c = base * (0.25 + 0.8 * z * z) + 0.25 * pow(z, 8.0);\n    }\n    return c;\n}\nvoid mainImage(out vec4 fragColor, in vec2 fragCoord) {\n    vec2 p = fragCoord / iResolution.xy;\n    float w = clamp((p.x - 0.1) / 0.8, 0.0, 1.0);\n    vec3 col = vec3(0.07, 0.08, 0.1);\n    if (p.x > 0.1 && p.x < 0.9) {\n        // dual quaternion: nlerp of the two rotation quaternions about the axis gives rotation w*TWIST, radius constant\n        col = tube(p, 0.7, RADIUS, vec3(0.4, 0.8, 0.55));\n        col += tube(p, 0.3, lbsR(w), vec3(0.95, 0.45, 0.3));\n        float g = abs(abs(p.y - 0.3) - RADIUS);\n        col = mix(col, vec3(0.9), smoothstep(0.004, 0.0, g) * 0.3 * step(0.0, sin(p.x * 120.0)));\n    }\n    float joint = min(abs(p.x - 0.1), abs(p.x - 0.9));\n    col = mix(col, vec3(1.0, 0.9, 0.3), smoothstep(0.004, 0.0, joint) * 0.8);\n    fragColor = vec4(pow(col, vec3(0.6)), 1.0);\n}\n",
   "basis": "original",
   "license_note": "written for this index",
   "execution_fidelity": "conceptual-diagram",
   "proof": {
    "kind": "rendered",
    "label": "rendered 2026-11-29",
    "ok": true,
    "proof": {
     "ok": true,
     "technique": "dual-quaternion-skinning",
     "runtime": "glsl-fragment",
     "checked_at": "2026-11-29T15:51:50.471Z",
     "renderer": "Chromium 145.0.7632.6 headless, WebGL2 via ANGLE/SwiftShader, 512×512, iTime=1.5",
     "stats": {
      "mean": 0.24,
      "std": 0.3171,
      "unique_colors": 104
     },
     "image": "/specimens/dual-quaternion-skinning-specimen.webp",
     "reason": null
    }
   }
  }
 ],
 "related": [
  "linear-blend-skinning",
  "fabrik-ik"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/simulation/dual-quaternion-skinning.json"
 },
 "solves": [
  "forearm twist collapses into a candy wrapper",
  "joints lose volume when twisting",
  "neck or tail pinches when rotated",
  "skinned limbs look pinched at bends and twists",
  "want volume-preserving skinning at similar cost"
 ],
 "authority": "Kavan et al., 2007",
 "url": "https://texelatlas.vercel.app/t/dual-quaternion-skinning/",
 "execution_fidelity": "conceptual-diagram",
 "fidelity_label": "Visual Diagram",
 "benchmark_eligible": false,
 "gpu_weight": {
  "weight_x": 1.36,
  "tier": "feather",
  "p50_ms": 0.0448,
  "p95_ms": 0.0459,
  "baseline_p50_ms": 0.0329,
  "gpu": "Tesla T4/PCIe/SSE2",
  "resolution": "1920x1080",
  "method": "opengl-timer-query",
  "frames": 40,
  "preset_id": "dual-quaternion-skinning-specimen",
  "execution_fidelity": "conceptual-diagram",
  "fidelity_label": "Visual Diagram",
  "benchmark_eligible": false,
  "generated_at": "2026-11-30T21:07:47Z",
  "l4": {
   "weight_x": 1.19,
   "tier": "feather",
   "p50_ms": 0.019,
   "p95_ms": 0.019,
   "speedup_x": 2.36,
   "gpu": "NVIDIA L4/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0159
  },
  "a100": {
   "weight_x": 1,
   "tier": "feather",
   "p50_ms": 0.0288,
   "p95_ms": 0.0288,
   "speedup_x": 1.56,
   "gpu": "NVIDIA A100-SXM4-40GB/PCIe/SSE2",
   "resolution": "1920x1080",
   "baseline_p50_ms": 0.0288
  }
 }
}