---
id: "dual-quaternion-skinning"
title: "Dual quaternion skinning"
aliases: [DQS]
domain: "simulation"
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"
cost: "cheap"
authority: "Kavan et al., 2007"
url: "https://texelatlas.vercel.app/t/dual-quaternion-skinning/"
sources_verified_at: "2026-11-29"
---
# Dual quaternion skinning (Kavan et al., 2007)

> Skinning that blends bone rigid transforms as dual quaternions instead of matrices, preserving volume at twisting joints at nearly linear-blend cost.

## Reach for it when

- 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

## 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 it

Choose it for twisting limbs, forearms, necks and tails where candy-wrapper artefacts show. Prefer [Linear blend skinning](https://texelatlas.vercel.app/t/linear-blend-skinning.md) 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

cheap — Slightly more than LBS: dual quaternion normalisation per vertex.
Measured GPU Weight: 1.36× baseline (feather) — 0.0448 ms median / 0.0459 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 1.19× baseline (feather) — 0.019 ms median (2.36× faster on L4).
Ampere A100 scaling: 1× baseline (feather) — 0.0288 ms median (1.56× faster on A100).

## 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

## Engine support

- blender: builtin — `Armature modifier > Preserve Volume` (evidence: https://docs.blender.org/manual/en/5.2/modeling/modifiers/deform/armature.html, checked 2026-12-01) — Preserve Volume uses quaternion blending.
- unreal: builtin — `Skeletal Mesh skinning pipeline (Dual Quaternion skinning support)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/skeletal-mesh-animation-system-in-unreal-engine, checked 2026-12-01)

## Dataflow

- Inputs: mesh, skeleton
- Outputs: mesh, animation
- Platforms: webgl2, webgpu, desktop-gpu, cpu, unity, unreal, blender

## Presets

### Toy side view: dual-quaternion twist keeps volume while linear blending pinches (glsl-fragment; rendered 2026-11-29)

```json
{
  "TWIST": 3,
  "RADIUS": 0.11
}
```

```glsl
// Toy side view of a twisted tube: dual-quaternion blend (top) keeps its radius, linear matrix blend (bottom) pinches.
const float TWIST = 3.0;
const float RADIUS = 0.11;
float lbsR(float w) { return RADIUS * sqrt((1.0 - w) * (1.0 - w) + w * w + 2.0 * w * (1.0 - w) * cos(TWIST)); }
vec3 tube(vec2 p, float cy, float rad, vec3 base) {
    float y = (p.y - cy) / max(rad, 1e-4);
    vec3 c = vec3(0.0);
    if (abs(y) < 1.0) {
        float z = sqrt(1.0 - y * y);
        c = base * (0.25 + 0.8 * z * z) + 0.25 * pow(z, 8.0);
    }
    return c;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
    vec2 p = fragCoord / iResolution.xy;
    float w = clamp((p.x - 0.1) / 0.8, 0.0, 1.0);
    vec3 col = vec3(0.07, 0.08, 0.1);
    if (p.x > 0.1 && p.x < 0.9) {
        // dual quaternion: nlerp of the two rotation quaternions about the axis gives rotation w*TWIST, radius constant
        col = tube(p, 0.7, RADIUS, vec3(0.4, 0.8, 0.55));
        col += tube(p, 0.3, lbsR(w), vec3(0.95, 0.45, 0.3));
        float g = abs(abs(p.y - 0.3) - RADIUS);
        col = mix(col, vec3(0.9), smoothstep(0.004, 0.0, g) * 0.3 * step(0.0, sin(p.x * 120.0)));
    }
    float joint = min(abs(p.x - 0.1), abs(p.x - 0.9));
    col = mix(col, vec3(1.0, 0.9, 0.3), smoothstep(0.004, 0.0, joint) * 0.8);
    fragColor = vec4(pow(col, vec3(0.6)), 1.0);
}

```

Attribution: written for this index

## Sources

1. [primary] Ladislav Kavan, Steven Collins, Jiří Žára, Carol O'Sullivan (2007) Skinning with dual quaternions. Proceedings of the 2007 symposium on Interactive 3D graphics and games. https://doi.org/10.1145/1230100.1230107 (verified via crossref on 2026-11-29)

## Cite this entry

Texel. "Dual quaternion skinning." https://texelatlas.vercel.app/t/dual-quaternion-skinning/ (accessed 2026-12-01).
