This section describes the general overview of the export process from Maya into the CRYENGINE using the Crytools that are available.
The most important thing to keep in mind while preparing for export are naming conventions. If the described objects are not named correctly then the exporter will not work. Also, since the position of up-axis in Maya is different than the CRYENGINE, the exporter will compensate by swapping the values accordingly.
To export an object from Maya:
Click the Export button on the Crytek toolbar to open the Crytek Export dialog, and then click the Add Attributes button. By clicking this you will add various options to shaders, such as joints and meshes.
Pic3: Attributes added
Select the 'cryexportnode' group.
Select the file type from the drop-down menu that appears in the Node Options section. You can also find this drop-down menu in the Extra Attributes section in Maya's Attribute Editor.
Make sure you have selected the Parent tree node (in our case, cryexportnode_@) to enable the properties options under the Node Options.
Pic4: Export window
Click the Export Selected button on the Crytek Export window.
An example Maya scene with the hierarchy setup for the static geometry exporting can be downloaded here: statictest.mb.
With a character model at hand, you should be ready for rigging. For this tutorial, we will use a standard humanoid figure.
To export a bone structure from Maya:
1. Parent the physicalized mesh to the joints as depicted below. You can also create one by adjusting very basic polygons surrounding your skeleton. Once finished, make sure you are blocking out your skeleton, and parent these new physics proxies to the skeleton.
Given that Maya does not allow spaces in names you can use a double underscore (__) as a space, this way the RC will convert it automatically when the character is exported.
Pic5: Character model in Maya
Ensure you have bound the skin and the bones so that when you animate a joint the skin is animated relative to it.
Pic7: ProxyNoDraw and other Extra Attributes
Pic8: Exporting a character skeleton (*.chr) and its skinned meshes (*.skin)
For more information on the character pipeline, please refer to this section for more information: Character Authoring in Maya.
Also you must ensure that Maya exports its animations at 30 fps. This can be changed under Window -> Settings/Preferences -> Preferences, and then navigate to Settings group in the list, and on the right hand side, under the Working Units set the Time setting to 30fps and then click Save.