Dual quaternion skinning
Skinning that blends bone rigid transforms as dual quaternions instead of matrices, preserving volume at twisting joints at nearly linear-blend cost.
Also known as DQS
In the family Simulation & animation, skeletal animation
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | Built in | Skeletal Mesh skinning pipeline (Dual Quaternion skinning support) docs |
| Blender 5.2 | Built in | Armature modifier > Preserve Volume docs Preserve Volume uses quaternion blending. |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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.
Field marks
- 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
Presets
Toy side view: dual-quaternion twist keeps volume while linear blending pinches
{
"TWIST": 3,
"RADIUS": 0.11
}Show GLSL (29 lines)
// 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
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| dual-quaternion-skinning-specimen | Tesla T4 1920x1080 | 1.36× baseline (feather) · 0.045 ms / 0.046 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| dual-quaternion-skinning-specimen | NVIDIA L4 1920x1080 | 1.19× baseline (feather) · 0.019 ms / 0.019 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| dual-quaternion-skinning-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 1.00× baseline (feather) · 0.029 ms / 0.029 ms · 1.6× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Blend shapes / morph targets and pose-space deformation, Quaternion slerp rotation interpolation; cited by RigNet automatic character rigging.
Sources
- primaryLadislav Kavan, Steven Collins, Jiří Žára, Carol O'Sullivan (2007). Skinning with dual quaternions. Proceedings of the 2007 symposium on Interactive 3D graphics and games.Verified via crossref · 2026-11-29doi:10.1145/1230100.1230107