If you want some files for reference, please download and unzip the tutorial files as described on this page.
Before you continue with this tutorial, make sure to have read and understood the following
The goal of this section is to create a poly cylinder and a dummy triangle poly mesh and two joint hierarchies in Maya.
The poly cylinder acts as the pony tail geometry which is bound to a joint chain. The other joint hierarchy acts as a simplified character skeleton where the first joint chain with pony tail polymesh will be attached to. In the end, we have a secondary pony tail joint chain extending the primary character skeleton.
Set up your Maya scene and save it to an appropriate directory, for example YOUR_PROJECT_FOLDER\Assets\Objects\current_tutorial. Be sure that the folder containing the Maya scene and exported files for CRYENGINE is a sub-folder of your project folder. In our case, we saved the Maya scene files in this directory:
For this tutorial we will create a poly cylinder skinned to a joint chain. This joint chain can be used for two very distinct use cases:
|We assume you to have at least some experience with Maya. We will post some images showing the interim steps and the final resulting scene.|
With Maya's "Bind Skin" tool, smooth bind the the poly cylinder mesh to the (secondary) pony tail skeleton: First select the poly cylinder and then the pony tail joint no. 1 till no. 7 and choose Maya's "Bind Skin" Tool from the "Skin" menu from the Rigging Menu set (in Maya press F-3).
Pic6: Smooth bind the pony tail geometry
Before we bind the triangle dummy to the primary character skeleton, we duplicate the skeleton first. Select the target skeleton root joint and press CTRL-D to duplicate.
Later we we will parent the pony tail hierarchy to this duplicated one. You may ask why we do this. That is because of the requirement in Maya to CRYENGINE export for an extending *.SKIN file to a base *.CHR skeleton. In Maya, you must include at least the following joints of your base/primary character's skeleton you want to extend to your secondary extending skeleton:
1. The root skin/influence joint which is in your skinCluster, mostly the first "deforming" skeleton joint, e.g. the pelvis of a humanoid character.
2. The target joint of your primary/base skeleton which you want your extending/secondary skeleton be attached to.
3. A root joint which meets the CRYENGINE requirement of being a zero'd out root node.: x-axis pointing to the right, y-axis pointing to the top when looked from a top viewport.
Or you just include the complete base/primary skeleton hierarchy you want to extend.
Pic7: Duplicate the primary skeleton for parenting the pony tail skeleton to it
Parent the pony tail skeleton to the last joint of the duplicated hierarchy.
Pic8: Include the primary/base skeleton into the (secondary) skeleton of the pony tail
This is how the two joint hierarchies have to look like for export:
Pic9: Remember that we have duplicate names issue for root joints of the primary and secondary skeleton. We must swap their names each time we export or put the them in two Maya scene files and export from there:
Before we go to the export steps, we still have to finish the base *.chr skeleton. The primary skeleton needs to be bound to the first deforming joint of the hierarchy: here it is the second joint in hierarchy, the pelvis joint. Select the triangle dummy mesh and the pelvis joint and use Maya's "Bind Skin" tool.
Pic10: Bind triangle dummy to target primary/base skeleton, the CHR skeleton:
We want to animate the "head" joint of the base skeleton, so that later when we add the physics procedural/secondary animation, it is derived from this (head) joint movement. Press the Play button in Maya to see the results
Pic11: Animated primary skeleton that will drive the pony tail physics later in CRYENGINE's Character Tool
The goal of this section is to show you how to create the necessary nodes for CRYENGINE *.chr, *.skin & an *.i_caf animation file export.
Pic12: This is what the final hierarchy looks like
In this section we need to create the cryExportNodes, materials, etc. for the Maya to CRYENGINE Export and create the *.chr and the *.skin file in the final location of any CRYENGINE asset.
Use the standard workflow to create a Material Group (a Maya Set) with sub shaders parented to it. We will define some random colors to a standard Blinn shader and add it to a CRYENGINE Material group. Don't forget to export the material to a *.mtl file in your project folder.
Pic15: Overview of a standard Blinn material applied to a scene ready for CRYENGINE export
We still have the name clashing issue for the root joint of the primary base skeleton (character CHR file) and the secondary extending skeleton (pony tail SKIN file).
Pic16: When we try to give both nodes the same name, Maya automatically renames one of them, because of clashing names.
To solve this we will remove the duplicates and save each cryExportNode and its skeleton hierarchy to a new file, so we end up with two files harboring a CHR and a SKIN cryExportNode.
Start by loading the "ponytail_skeleton_final.ma" file. There we we remove all pony tail SKIN related nodes and save the scene to a new file. From here we export the CHR file and also the "default" animations show below. Use the Crytek shelf -> Export button to export your *.CHR file.
Pic17: cryExportNode hierarchy of the animated primary skeleton CHR
We load up the "ponytail_skeleton_final.ma" file again. Then we remove all the base skeleton related nodes and save the scene to a new file. From here we export the *.SKIN file. Use Crytek shelf -> Export to export your *.SKIN file.
Pic18: CryExportNode hierarchy for the SKIN attachment
This concludes the Maya section. In the next section we will start CRYENGINE's Character Tool to set up the pony tail.