MotionSampler stores information about talents in ordinary text files ending with the file extension .tal. A single talent file can contain many calibrations for several different talents.
Basically, a talent file contains a sequence of Talent objects, each with a unique name. Each Talent object contains a sequence of Calibration objects, each with a name/type pair unique to the Calibrations in the containing Talent.
Talent files are arranged as follows:
One Talent object is delimited by lines of text in this form:
All text that falls between the begin talent line and the end talent line is considered part of the Talent object.
Calibration blocks are specific to individual modules that require them. The following example of a talent block includes two calibration blocks for a Biped filter:
You may want to match the name specified in the begin talent line to a UNIX login name, if appropriate, because MotionSampler makes use of login icons in the Talent Editor.
The talent file format also recognizes strings associated with the keywords fullname, title, company, and address to collect personal data on human talents. In each case, a line beginning with one of these keywords stores the string that follows it. The text that follows the keyword should be inside quotation marks.
A single calibration is delimited by lines of text in this format:
begin CALIBRATION_TYPE CALIBRATION_NAME end CALIBRATION_TYPE CALIBRATION_TYPE is replaced with a keyword that specifies a calibration type defined by one or more cooperating plugins. The BipedTalent and Biped2 plugins create and use biped type calibration as shown in the following example:
offset_rotation head 17.9 180 90
offset_rotation chest 19.8 172.5 -88.8
offset_rotation hip -38.6 -6.6 -89.5
offset_rotation left_arm 0 -8.5 -164.9
offset_rotation right_arm0 -170.6 6.6
offset_rotation left_hand -90 12.3 0
offset_rotation right_hand 112.9 -178.1 0
offset_rotation left_leg 0 -176.2 0
offset_rotation right_leg 0 0 -180
offset_rotation left_foot -119.7 -65 -12.3
offset_rotation right_foot 68.8 121.6 36.8
offset_position left_shoulder 3.93 6.13 -5.5
offset_position right_shoulder -6.44 3.61 -5.18
offset_position left_elbow -1.5 0 0.75
offset_position right_elbow -1.5 0 0.75
offset_position left_wrist 9.58 0 0.47
offset_position right_wrist 9.58 0 0.47
offset_position left_hip 4.87 -0.79 0.16
offset_position right_hip -2.98 -1.41 0.31
offset_position left_knee -3 0 -2
offset_position right_knee -3 0 -2
offset_position left_ankle 13 0 -1.41
offset_position right_ankle 13 0.47 1.41
The specific information that comes between the begin CALIBRATION_TYPE line and the end CALIBRATION_TYPE line is determined by the plugin defining it.
MotionSampler captures motion from a variety of sources. Because the most common source is human, the following information about sampling motion information uses a human talent example.
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.