Message 1 of 3
reading/writing a CS .fig file (ASCII)

Not applicable
03-31-2008
11:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hiya ...
I recently realized that a biped figure file (.fig) is in ASCII format ..
I 'm writing a tool to build a biped from scratch thro maxscript using some values I have in a file.
These values that I have are the world transform matrix values of each joint.
If I could understand the values found in a .fig file, that'd be a great start point ...
Does anyone have the know how of the structure of a .fig file?
This is what I've figured out till now:
# A fig file has integer values like 10,11,12,13, and so on, which I presume are some kind of IDs corresponding to various Biped parts.
for eg, I guess
11 : Spine
12 : Head
13 : Neck
101 : COM
Am still trying to figure out the rest.
The number of links of a biped part, I guess, is stored as a integer value which is (numLinks * 3)
Another important value found in the file is the distance between a joint and the next child, in max units.
11 ##SPINE
3
21.796455
eg: If the number of spine link is 1, then the spine ID 11 is followed by the value 3.
If numSpineLinks == 2 then spine ID 11 would be followed by 6 (2 * 3)
21.796455 could be the distance between the spine joint and its child, the neck joint.
It also seems that the matrix values stored in the .fig file are using Y -UP, maya style, instead of max styled Z-UP.
Any gurus out there who could shed more light on this file format, highly appreciated.
Thanks in advance
regards,
shibu
I recently realized that a biped figure file (.fig) is in ASCII format ..
I 'm writing a tool to build a biped from scratch thro maxscript using some values I have in a file.
These values that I have are the world transform matrix values of each joint.
If I could understand the values found in a .fig file, that'd be a great start point ...
Does anyone have the know how of the structure of a .fig file?
This is what I've figured out till now:
# A fig file has integer values like 10,11,12,13, and so on, which I presume are some kind of IDs corresponding to various Biped parts.
for eg, I guess
11 : Spine
12 : Head
13 : Neck
101 : COM
Am still trying to figure out the rest.
The number of links of a biped part, I guess, is stored as a integer value which is (numLinks * 3)
Another important value found in the file is the distance between a joint and the next child, in max units.
11 ##SPINE
3
21.796455
eg: If the number of spine link is 1, then the spine ID 11 is followed by the value 3.
If numSpineLinks == 2 then spine ID 11 would be followed by 6 (2 * 3)
21.796455 could be the distance between the spine joint and its child, the neck joint.
It also seems that the matrix values stored in the .fig file are using Y -UP, maya style, instead of max styled Z-UP.
Any gurus out there who could shed more light on this file format, highly appreciated.
Thanks in advance
regards,
shibu