Rig conversion
Â
This workflow is now optional. The setup can be done directly from the Atoms UI. You don't need to process the asset anymore. If you are using Atoms 3.6.0 or a newer version, please go to the Building an Agent Type tutorial.
Your characters must be exported into Atoms Crowd format files before you can use them in your simulations. In this section we are going to see how you can do it.
Some guidelines will also be given on how you should layout your scene to be exported correctly.
Always export your character definition from the bind pose.
Preparing your scene
As explained in the Agent type page, your agent types will need a skeleton and skinned geos.
You should gather all your skinned meshes under one group. How you name these groups does not really matter as long as it makes sense to you.
There is no naming convention for your skinned geometry.
Atoms viewport skinning preview only supports 3 joint weights per vertex maximum. Please make sure to skin each vertex to 3 joints maximum or the Viewport preview won't display correctly.
Â
Opening the Skeleton Exporter Tool
Once your scene is ready, you can open the skeleton and animation exporter tool using the shelf button. You can also open it via the Atoms menu: Atoms > Export > Rig/Animation Exporter
The Rig Exporter GUI will pop up.
The "Root Joint" field must be set to the root joint of your skeleton, while the lists below are designed to tag, untag and list specific joints of your skeleton (pelvis and leg) as explained in the Agent type page).
Atoms need to know this information in order to place correctly your agent on the ground, apply the IK and the foot lock during the simulation.
Tagging just means adding some maya attributes (or houdini parameters) on those joints. Please check the attribute editor (or property panel) after pressing these buttons to see which attributes are added.
The "Extra Joints" list is where you'll add your prop joints.
Each joint list has buttons for adding and removing joints from the lists, a sanity check button which will turn red if there's something wrong with your skeleton (you can click on it to have a report about what's wrong with your rig) and a help button which displays a help tooltip to let user know what each tag means.Â
Each list has a menu for selecting the joints and performing other actions.
The "Proxy" field will point to your proxy geos group.
The "Skin" field will point to your skinned geos group.
Please use the "Output path" field to set your destination folder location.
Â
Exporting your files
For this example we're going to work with the man.ma scene shipped with Atoms (you can find it in the data folder of your Atoms installation). In this scene all the joints and geos are already prepped correctly.
First let's tag our joints:
Select the Hip joint and click on the "Pick from selection" button on the "Root Joint" line.
With the Hip joint selected, click on the "+" button under the "Pelvis Joints" list.
Select the LeftUpLeg and RightUpLeg joints and click on the "+" button under the "Foot Root Joints" list.
You can set the pole vector of the ik chain by moving the new locator nodes just being created in the viewport. The pole vector is a point in world space and you can find this attribute inside the Attribute Editor Extra Attributes section for this foot root, by default Atoms tries to find a sensible value using the position of this foot root first child joint. For selecting the pole vector for each foot root you can right click to an element of the list and select the pole vector via the menu.Select the LeftFoot and RightFoot joints and click on the "+" button under the "Foot IK Joints" list.
Select the LeftToeBase and RightToeBase and click on the "+" button under the "Foot Tip Joints" list.
Then:
Select the "SKIN" group and click on the "Pick from selection" button next to the "Skin" label. Click "Pick selection" on the popup menu.
Select a file path where to save your atomsskel file.
At this point the GUI should look like in the picture.
Â
Â
Click on Export and your files will be exported in the right location:
Â
In this example we did not have any extra (prop) joint. In case you do just select them and click on the plus button before clicking the "set bind pose attributes" button.
Add custom data
If you want add some custom data to some joints please check the Adding custom metadata section
Copyright © 2017, Toolchefs LTD.