Export: Full Body Animation
From CryWiki
To set up a full body animation you will already need a Mods folder that contains the necessary folders and files for exporting. This would be the Bin32 folder and Tools/Maxscript folder. This is critical in getting animations to export at all.
|
Contents |
Exporting Full Body Animation
Setting Up The Basics
- First you need to add the necessary object and animation folders and add any needed files. This would be:
\Mods\Mymods\Game\Objects\Characters\Human\human_male\character.chr
\Mods\Mymods\Game\Animations\human\male\combat
\Mods\Mymods\Game\Animations\Animations.cba
- \Mods\Mymods\Game\Objects\Characters\Human\human_male\character.chr
This is the same file used in the Example/Example Assets Mod from the SDK. Its needed in the same Mod folder that your exporting your animations CAF file to.
- \Mods\Mymods\Game\Animations\human\male\combat
This will be the folder we export our new replacement animations to. The folder structure follows the original game since were just replacing original full body animations.
- \Mods\Mymods\Game\Animations\Animations.cba
This file needs to be added and modified to export correctly. Grab the original from the Animation.pak file and put it in your mods Animation folder. When you open it up (notepad/wordpad) the "Animation Definition" for the character.chr file needs to be called also. You can get the required code for it by opening the Animations.cba file in the animation folder of the Examples/Example Assets mod. Grab from <AnimationDefinition> to <SpecialAnimsList> and copy/paste it into the one in your Mods animation folder.
|
- One more thing you have to do in the Animations.cba file is to get rid of this in the Nanosuit info:
<RotatePosRoot value="L180"/>
<RotateQuatRoot value="L90"/>
<RotatePosChild value="L90"/>
<RotateQuatChild value="L90"/>
|
Inside 3DS Max
- Open up the character.max file given in the Example/Example Assets mod (\Mods\Examples\Example Assets\Objects\Characters\human_male).
- When we first open the file all you'll see is the character mesh. All we want is the biped so were going to unhide and hide some things.
|
- All you need is the biped, so first select the Display tab in the command panel(1). Next select the mesh and click on [Hide Selected](2). Finally, click on [Unhide by Name] and you will get a new menu(3).
- Collapse the second line Bip01 Pelvis Phys(1). You can then select Bip 01 and click Unhide(2). The next box will ask you if you would like to Unhide the layers of the objects, click ok.
- You can toggle off the rest you don't need. In Category click off Geometry and Helpers.
Setting Up The Biped
- First select the Motion tab in the command panel(1). Select both feet (hold control to mutli select) and right click in the viewport. Select Set Planted Key(2), this will allow you to animate from the pelvis realistically. Finally click the Time Configuration button to set the amount of frames were going to be using(3).
- In the Time Configuration window change End Time to 20 for this animation.
- Select the Bip01 Pelvis and expand the Key Info section (1), we will be using the little red Set Key button(2). In the track selection section select Body Vertical(3). For demonstrations sake the animation will start and end with the same pose. In the timeline you will see at frame zero a multi colored key frame(4). Shift select the key and drag it across to frame 20. Click the timeline to deselect the copied key and grab the timeline scroll bar and drag it to frame 10(5).
|
- Select the z axis and transform the pelvis down(1). Next set a new key with the Set Key button (little red dot). Finally select Utilities in the command panel(2).
|
Exporting
- Remove everything in the Object Export section except "character"(1). Scroll down and check "Add whole skeleton"(2). Finally click on "Export Bones" and click ok to the "Biped lower arm twist bones reparented" prompt.
|
- You will then be asked to save the CAF file somewhere and to name it. Put the CAF file in the combat folder made in the beginning (\Mods\Mymods\Game\Animations\human\male\combat) and name it combat_idle_nw_01. This animation is the idle stance while not equipped with a weapon.
|
Sandbox2
- Open the Editor with the mod running where your new animation was saved into. Click the little green guy in the top right corner for the Character Editor.
- The animation was saved in the combat folder so open that. Look for combat_idle_nw_01 in the list. A successful full body animation export will be showing your character bending down and up.
Credits
[DBD]Mephisto03

