Originally mentioned in
this topic, there were problems in getting the animation of 3D models to work in newer revisions of the SDK. Older snapshots worked fine (these have been used in tutorials and testing so far). However, obviously there would be benefit to getting this stuff to work in newer or newest revisions.
It was suggested to me that the turning point may be from
these changes relating to the animation format in the fo3d, where the syntax for the animations was changed.
So lines which used to be :
Anim A 1 %anim_file% %anim%_Def_Una_Idle_01
Were changed to :
Anim Anim1Unarmed Anim2Idle %anim_file% %anim%_Def_Una_Idle_01
If you go to the bottom of the _FOHuman.fo3d, we're currently using the "older" syntax, i.e.
# Unarmed
Anim A 1 %anim%_Idle.x Idle
[...]
Anim A 3 %anim%_Walk.x Walk
In a newer SDK revision, I tried changing these to :
Anim Anim1Unarmed Anim2Idle %anim%_Idle.x Idle
[...]
Anim Anim1Unarmed Anim2Walk %anim%_Walk.x Walk
However, it makes no difference. In both cases, the model renders correctly, and the unarmed idle pose is correctly read (i.e. whatever you put in the first line is used correctly, arms down instead of T-pose). In both cases, no further animations are read (so he "slides about" instead of walking). The Van Buren human models move and animate correctly - but the only real difference I could spot was that their animations are retrieved from a single master %anim_file% rather than separate %anim%_Idle and %anim%_Walk etc.
Anyone got any ideas or thoughts, or been able to get the animations working in newer versions?
[edit, 23/01/2012] I retested this, and tested further things. The "new format" of animation commands seems to do nothing in fact (not even idle pose - I'm not sure if I was mistaken previously). I tried combining multiple animations into a single animation file, which also did nothing. It seems that the only line it will read is "Anim A 1 [filename] [animation name]". It doesn't seem to want to read any further animation lines.
[edit, 25/01/2012] I tried some extra things and this is now beginning to work. I'd tested several things at once and am not sure which is the key element - so once I've isolated exactly what this is, I'll post full info up here, with corrected files if necessary.