Verifying glTF 2.0 Keyframe Tracks, Interpolation Modes, and Rest Poses
How Samplers and Channels Bind Time Accessors to Scene Nodes
Every glTF 2.0 animation separates timing math from scene-graph targeting through two arrays: samplers[] and channels[]. Each sampler pairs a monotonically non-decreasing SCALAR FLOAT input accessor (keyframe timestamps in seconds) with an output accessor holding translation vectors, unit quaternions, scale triples, or morph-target weight scalars, evaluated via LINEAR, STEP, or CUBICSPLINE interpolation. Each channel then routes a sampler output to a specific node index and TRS property.
Common export bugs from Blender NLA tracks or Maya FBX-to-GLB bridges include baked 60-fps tracks with thousands of redundant static keys, orphaned channels pointing at deleted rig bones, negative start timestamps, or non-unit rotation quaternions. Scrubbing the timeline interactively in WebGL2 while inspecting the exact channel table exposes timeline drift before runtime state machines load the clip.
- Computes exact clip duration in seconds from sampler input accessor bounds and binary float timestamps.
- Lists every channel target node name, property path (translation, rotation, scale, weights), and keyframe count.
- Provides an interactive WebGL2 Play/Pause toggle and 0.01-second timeline scrubber.
Validating Child-Node Motion in Hierarchical Rigs
On animated-child.glb, ParentRoot stays stationary at the origin while AnimatedChild translates along its local axis from 0.0 s to 1.5 s. Pausing and scrubbing confirms clean linear interpolation without root-motion pop.