Introduction
The Acclaim format stores motion capture as a pair of text files. The skeleton file,
.asf (Acclaim Skeleton File), describes the bones, their rest pose and their
tree. The motion file, .amc (Acclaim Motion Capture data), gives the values
of each bone’s degrees of freedom frame by frame. One skeleton usually serves many motion
files. The skeleton definition, version 1.10, is an Acclaim internal memo of May 1994;
the Vicon capture software writes the pair, and Carnegie Mellon University’s motion
capture database is published in it.
Structure
An ASF file is a series of sections, each started by a keyword beginning with a colon.
Version, name, units and documentation come before :bonedata, and
:bonedata comes before the hierarchy. Everything from # to the
end of a line is a comment. Commas and parentheses count as white space.
:version 1.10
:name example
:units
mass 1.0
length 1.0
angle deg
:documentation
Two bones.
:root
order TX TY TZ RX RY RZ
axis XYZ
position 0 0 0
orientation 0 0 0
:bonedata
begin
id 1
name lowerback
direction 0 1 0
length 2.0
axis 0 0 0 XYZ
dof rx ry rz
limits (-30.0 45.0)
(-30.0 30.0)
(-30.0 30.0)
end
begin
id 2
name head
direction 0 1 0
length 1.5
axis 0 0 0 XYZ
end
:hierarchy
begin
root lowerback
lowerback head
end
ASF sections
| Keyword | Content |
|---|---|
:version 1.10 | Version of the file definition, a decimal number. |
:name text | Name of the skeleton; the definition allows 50 characters. |
:units | Optional. Unit settings on the following lines. |
:documentation | Free text, up to the next line that starts with a keyword. Unlike comments it is meant to be kept when a program rewrites the file. |
:root | The root node, which positions and orients the whole skeleton. |
:bonedata | One begin … end block per bone. |
:hierarchy | Which bones are children of which. The memo spells the keyword :hierachy; files and readers use :hierarchy. |
:skin "file" | Optional names of skin models for the skeleton, one quoted file name per entry, several allowed (for example block, medium and high resolution). How a skin is bound is left to the vendor. |
Units
| Line | Meaning |
|---|---|
mass f | Multiplier relating the file’s mass values to another unit system. |
length f | Multiplier for lengths; the memo’s example is 2.54 for data in centimetres with local units in inches. |
angle deg|rad | Unit of angles. Degrees if not given. |
The Carnegie Mellon files have length 0.45 and measure in inches: bone
lengths and root positions become metres when multiplied by (1 / 0.45) × 2.54 / 100,
about 0.056444.
Root section
| Line | Meaning |
|---|---|
order tokens | The root’s channels, for example TX TY TZ RZ RY RX. This is both the order of the values on the root line of an AMC frame and the order in which the root rotations are applied, about the fixed global axes. Translations and rotations may be interleaved; translations usually come first. |
axis XYZ | Rotation order for orientation. Without effect when the orientation is zero. |
position x y z | Preset position of the root, offsetting all motion data. |
orientation x y z | Preset rotation of the root about the X, Y and Z axes, applied in the axis order. |
The root is a point rather than a bone: it has no direction or length. It is the only node whose global translation and rotation are recorded. A file has one root. Vicon BodyBuilder always writes zero position and orientation, because programs disagree on whether the preset applies about fixed or moving axes.
Bone blocks
id or name must come before any other line, and
limits after dof.
| Line | Meaning |
|---|---|
id n | Optional numeric identifier, which the memo says can be used in place of the name for reference. |
name word | Name of the bone, without spaces; unique in the file. Case is not significant under the naming convention, and lower case is recommended. |
direction x y z | Direction of the bone in the base pose, a unit vector in global coordinates. |
length f | Length of the bone. Direction times length is the offset to where its children start. |
axis x y z order | Initial orientation of the bone’s own axes: three rotations about the fixed global axes and the order in which they are applied, such as XYZ. The motion values are expressed in these axes. |
bodymass f | Optional (version 1.10): mass of the body part attached to the bone. |
cofmass f | Optional: position of the centre of mass along the bone. |
dof tokens | Optional: the bone’s degrees of freedom, only those it needs, in the order their values appear in the AMC file. Without it the bone cannot move and the AMC file does not list it. |
limits (min max) | One pair per degree of freedom, in the same order, the first after the keyword and the others usually on following lines. inf and -inf mean no limit. |
Limits are for editing tools: they do not change how motion data is read and must not clip recorded values, and a system may ignore them. Vicon’s notes ask that the second of three rotations be limited to −90 to 90 degrees.
Degree of freedom tokens
| Token | Value in the AMC file |
|---|---|
tx ty tz | Translation along the axis |
rx ry rz | Rotation about the axis |
l | Length of the bone (“stretch”): a movement along the bone, not a scale. The value is the new absolute length and replaces length for that frame. |
The root’s order line is usually written in capitals and bone
dof lines in lower case.
Hierarchy section
Between begin and end, each line names a parent followed by
its children, separated by spaces. The parent of the first line is root.
The first child listed is the main route through the skeleton.
The definition allows no gaps: a child starts where its parent ends. Where a skeleton
needs an offset, an extra bone fills it, so ASF skeletons have bones without degrees of
freedom, such as Vicon’s lhipjoint.
Bone naming convention
The memo gives an optional convention, used by Acclaim to map motion between skeletons:
class_side_position_bone_segment_division,
with words joined by underscores. Only the bone word is required.
| Part | Words (short forms in brackets) |
|---|---|
| Class | h, human; the default |
| Side | left (L), right (R) |
| Position | up (u), nearest the torso; mid (m); low (l), furthest from it |
| Bone | root (the root node), basebone (base, an extra bone aligning the skeleton with the global axes), head, neck, shoulder (shld), torso (trs), waist (wst), hip, leg, foot, toe, toes (all toes as one), arm, hand, finger (f), fingers (fngs) |
| Segment | dummy (only positions the next bone); a spelled number for one of several of a kind: one (on), two (tw), three (th) and so on; finger one is the thumb, toe one the big toe |
| Division | 1, 2, 3 …: one rotation divided among several bones, numbered from the oldest ancestor, as in h_torso_1 |
Examples: h_waist, h_L_finger_one,
h_left_up_arm, L_l_toe_th. Many files, including Vicon’s, use
their own names such as lfemur.
AMC motion files
The motion file is read against its skeleton. It has comment lines starting with
#, header keywords starting with a colon, then the frames. A frame is its
number alone on a line, counting from 1, followed by one line per moving bone: the
bone’s name and its values in the order of its dof line (for
root, the order of the root’s order line).
#!OML:ASF example.ASF
:FULLY-SPECIFIED
:DEGREES
1
root 10.4194 16.7048 -30.1003 -2.48972 -9.82194 -3.00914
lowerback 7.86573 1.57272 6.3571
2
root 10.4117 16.684 -29.9168 -2.69729 -10.0082 -2.83243
lowerback 7.44596 1.65374 6.09331
| Header line | Meaning |
|---|---|
:FULLY-SPECIFIED | Written by Vicon software and by Carnegie Mellon’s player; frames then list every moving bone. Readers skip it. |
:DEGREES | Angles are in degrees. It is the last header line, and some readers look for it to find the first frame. |
:FORCE-ALL-JOINTS-BE-3DOF | An addition of Carnegie Mellon’s player: every moving bone line carries all three rotations, whatever the skeleton declares. |
#!OML:ASF path | A comment naming the skeleton file the data was made for. |
Computing the pose
In column-vector notation, where the rightmost matrix acts first, an order such as
XYZ gives Rz Ry Rx. For every bone, and
for the root using orientation and its axis order:
- C is the rotation built from the
axisangles in the stated order. - M is built for a frame from the motion values, the first
dofacting first (rx ry rzgives Rz Ry Rx). - B is the translation from the parent: the parent’s direction times its length. For the root it is
position, and the root’sTX TY TZvalues move it. - The local transform is L = B C M C−1, and the global transform is G = Gparent L.
Directions are given in global coordinates, so the far end of a bone is its origin plus the bone’s accumulated rotation applied to direction × length. The skeleton returns to the base pose before each frame is applied. The course description writes the same rule for row vectors as L = C−1 M C B.
Divergence from the specification
| Subject | What differs |
|---|---|
| Hierarchy keyword | The memo has :hierachy; real files and the readers below use :hierarchy. |
| Axis order | Vicon BodyBuilder and most graphics programs treat the axis order as rotations about fixed global axes; Nichimen’s software treats it as moving axes. |
| Root order | Softimage understands only TX TY TZ RZ RY RX. Carnegie Mellon’s player ignores the line and assumes TX TY TZ RX RY RZ. |
| Names | Softimage accepts only lower-case bone names. |
l channel | Softimage ignores it; the Kinemation translator crashes on it. |
| Line layout | The Python reader AMCParser requires id, name, direction, length and axis in that order in every bone, and the axis order XYZ. It and the MATLAB reader need a :DEGREES line in the motion file; cgkit skips all header lines. |
| Units | AMCParser and Carnegie Mellon’s player start reading at :bonedata, so they ignore :units and :root and assume degrees. |
| Frame count | An AMC file does not state it. Carnegie Mellon’s player computes it from the number of lines, assuming three header lines. |
In the explorer
An ASF file is listed line by line, with each bone block as a node, tables of the bones
and the hierarchy, and a 3D view of the rest pose. An AMC file is listed frame by frame.
Opened from a folder that holds its skeleton, it is played and every frame opens as a
pose with its values named by channel; the skeleton named in the
#!OML:ASF comment is tried first, then one of the same name, then the other
.asf files, and the first that has every bone the motion names is used. The
file gives no frame rate, so 120 and 30 frames a second are offered. Y is drawn up, in
the file’s length units. Skeleton files up to 64 MB and motion files up to 256 MB are
read.
Not described
The skeleton file follows Acclaim’s definition and Vicon’s notes on it. The motion file follows a university course description, files and reader source code.
Known, not yet covered
- Viewer: skin files are listed by name and not opened, joint limits are listed and not checked against the motion, and the reading of the axis order about moving axes (Nichimen) is not offered. A motion file opened on its own is listed without a picture.
Unknown
- Reference: no Acclaim definition of the motion file has been found, so its full list of header keywords, including whether one announces angles in radians, is not known.
Also used for
- Advanced Systems Format – Microsoft’s Windows Media video, in GUID-tagged ASF objects.
Links
Software
- Carnegie Mellon motion capture tools – players and converters for ASF/AMC, with source code (C++, MATLAB)
Developers
- AMCParser – small ASF and AMC reader (Python)
- MOCAP toolbox – Neil Lawrence’s motion capture readers, including Acclaim (MATLAB)
- cgkit asfamc – ASF and AMC reader classes (Python)
Reference
- acclaim.zip – Acclaim’s skeleton file definition (technical memo 39, M. Schafer, 1994) and Oxford Metrics’ notes on its lines, archived copy
- Acclaim ASF/AMC – description of both files and the transform maths, University of Wisconsin course, 1999, with an example skeleton
- CMU motion capture database: questions and answers – units of the published files
- mocapPlayer – Carnegie Mellon’s player with its ASF and AMC reader and writer source