Difference between revisions of "Content Dev:IC Maya Motion to iClone"

From Reallusion Wiki!
Jump to: navigation, search
m (Checking Animation are Consistency in iClone)
m
 
Line 24: Line 24:
 
== Provisional Files ==
 
== Provisional Files ==
  
We provide some preconfigured files to help you bring ''Maya'' animations into iClone. You can download them [[Media:Maya Motion to iClone.zip|here]].
+
We provide some pre-configured files to help you bring ''Maya'' animations into iClone. You can download them [[Media:Maya Motion to iClone.zip|here]].
  
 
* '''Ready to animate.mb''': ready-to-use 2020 MB (Maya Binary) file for adjusting motion.
 
* '''Ready to animate.mb''': ready-to-use 2020 MB (Maya Binary) file for adjusting motion.
Line 50: Line 50:
 
  ''Wikipedia'' describes IK/FK with the following passage: In computer animation and robotics, inverse kinematics is the mathematical process of calculating the variable joint parameters needed to place the end of a kinematic chain, such as a robot manipulator or animation character's skeleton, in a given position and orientation relative to the start of the chain. Given joint parameters, the position and orientation of the chain's end, e.g. the hand of the character or robot, can typically be calculated directly using multiple applications of trigonometric formulas, a process known as forward kinematics. However, the reverse operation is, in general, much more challenging.
 
  ''Wikipedia'' describes IK/FK with the following passage: In computer animation and robotics, inverse kinematics is the mathematical process of calculating the variable joint parameters needed to place the end of a kinematic chain, such as a robot manipulator or animation character's skeleton, in a given position and orientation relative to the start of the chain. Given joint parameters, the position and orientation of the chain's end, e.g. the hand of the character or robot, can typically be calculated directly using multiple applications of trigonometric formulas, a process known as forward kinematics. However, the reverse operation is, in general, much more challenging.
  
* The HumanIK system allows you select controls within the view-port and the side panel. Selecting from the side panel is recommended because it makes it less likely that something will be mistakenly selected.
+
* The HumanIK system allows you to select controls within the view-port and the side panel. Selecting from the side panel is recommended because it makes it less likely that something will be mistakenly selected.
  
 
[[File:maya_motion_to_ic_control_rig.png]]
 
[[File:maya_motion_to_ic_control_rig.png]]
Line 62: Line 62:
 
[[File:maya_motion_to_ic_pins.gif]]
 
[[File:maya_motion_to_ic_pins.gif]]
  
* You can use pins to lock the body parts in place. For example, both feet will be lifted when the hip is moved, however when '''Pin Translation/Rotation''' is applied to both feet then they will stay locked in place when the hip is pulled.
+
* You can use pins to lock the body parts in place. For example, both feet will be lifted when the hip is moved, however, when '''Pin Translation/Rotation''' is applied to both feet then they will stay locked in place when the hip is pulled.
  
 
  Note: '''Full Body''' mode has to be on in order for the pins to take effect.
 
  Note: '''Full Body''' mode has to be on in order for the pins to take effect.
Line 76: Line 76:
 
[[File:maya_motion_to_ic_create_custom_rig_mapping.png|right]]
 
[[File:maya_motion_to_ic_create_custom_rig_mapping.png|right]]
  
4) Press on the '''Create Custom Rig Mapping''' button to the right and click on '''Define''' in the subsequent pop-up window.
+
4) Press on the '''Create Custom Rig Mapping'' button to the right and click on '''Define''' in the subsequent pop-up window.
  
 
5) In order to map ''iClone'' bones to HumanIK, you'll need to click twice on the target bone in the mapping window and select the corresponding bone in the view-port.
 
5) In order to map ''iClone'' bones to HumanIK, you'll need to click twice on the target bone in the mapping window and select the corresponding bone in the view-port.
Line 86: Line 86:
 
[[File:maya_motion_to_ic_bone_mapping.gif]]
 
[[File:maya_motion_to_ic_bone_mapping.gif]]
  
  Beware: Even though automatic detail settings for the fingers are available, it will often cause the hands bones to offset.
+
  Beware: Even though automatic detail settings for the fingers are available, it will often cause the hand bones to offset.
  
 
[[File:maya_motion_to_ic_mapping_guide.png]]
 
[[File:maya_motion_to_ic_mapping_guide.png]]
Line 96: Line 96:
 
=== Animation Precautions ===
 
=== Animation Precautions ===
  
* Make sure the FPS is set 60.
+
* Make sure the FPS is set to 60.
 
* Animation keys should be applied to the control rig and not directly onto the skeleton bones. The skeleton is locked and invisible by default (do not alter these settings, unless under special circumstances).
 
* Animation keys should be applied to the control rig and not directly onto the skeleton bones. The skeleton is locked and invisible by default (do not alter these settings, unless under special circumstances).
* Squash and stretch animations should be avoided because it is not supported in ''iClone''. Not only is the effect not able to imported into ''iClone'', it can cause some unexpected errors as well.
+
* Squash and stretch animations should be avoided because it is not supported in ''iClone''. Not only is the effect not able to import into ''iClone'', but it can also cause some unexpected errors as well.
 
* You can use ''Maya's'' '''Graph Editor''' to help adjust animations.
 
* You can use ''Maya's'' '''Graph Editor''' to help adjust animations.
  

Latest revision as of 20:57, 16 June 2022

Main article: iClone.

Introduction

Important Precautions and Settings

  • Make sure the FPS (frames per second) is set to 60.
  • Use FBX 2012 to 2018 for export.
  • Don't alter the skeleton proportions, e.g. scaling and stretching.
  • Don't alter the skeleton bone names.
  • Don't add or remove skeleton bones.

Simple Workflow

  1. Export an iAvatar from iClone 7 with the Maya preset.
  2. Import the iAvatar into Maya.
  3. Use the preexisting skeleton to adjust the motion.
  4. Bake the motion onto the skeleton and export the character in FBX.
  5. Bring the character into 3DXchange, re-target it to a Non-Standard character, and save as RLMotion.
  6. Open the same character in iClone 7 and apply the saved RLMotion.
  7. Check if the motion is consistent with the animation in Maya.

Provisional Files

We provide some pre-configured files to help you bring Maya animations into iClone. You can download them here.

  • Ready to animate.mb: ready-to-use 2020 MB (Maya Binary) file for adjusting motion.
  • mapping data.3dxProfile: 3DXchange mapping data for Maya exported motion FBX.
  • Character.iAvatar: iAvatar character that can be used with iClone.

Usage Method

1) Inside Maya, perform Menu > Open Scene and select the provided Ready to animate.mb file.

If the imported character is laying flat on the floor then change Settings > World Coordinate System to Y under Windows > Settings/Preferences > Preferences.

Maya motion to ic world coordinate system.png

2) Too prevent us from moving the skeleton, we'll need to set the Display status to Template inside the Layer settings.

Maya motion to ic template display.png

Motion Creation and Precautions

Control Rig Introduction

  • Animate with the provided HumanIK system. You can also use a rigging system of your choice.
Wikipedia describes IK/FK with the following passage: In computer animation and robotics, inverse kinematics is the mathematical process of calculating the variable joint parameters needed to place the end of a kinematic chain, such as a robot manipulator or animation character's skeleton, in a given position and orientation relative to the start of the chain. Given joint parameters, the position and orientation of the chain's end, e.g. the hand of the character or robot, can typically be calculated directly using multiple applications of trigonometric formulas, a process known as forward kinematics. However, the reverse operation is, in general, much more challenging.
  • The HumanIK system allows you to select controls within the view-port and the side panel. Selecting from the side panel is recommended because it makes it less likely that something will be mistakenly selected.

Maya motion to ic control rig.png

  • The Character and Source settings have already been set. Under normal circumstances, these settings should be left untouched.

Maya motion to ic fk ik.png

  • The HumanIK includes both the IK and FK control modes, and it's possible to blend between the two with the IK Blend T/R attribute, with 0 as full FK and 1 as full IK.

Maya motion to ic pins.gif

  • You can use pins to lock the body parts in place. For example, both feet will be lifted when the hip is moved, however, when Pin Translation/Rotation is applied to both feet then they will stay locked in place when the hip is pulled.
Note: Full Body mode has to be on in order for the pins to take effect.

Applying Human IK System in Maya

1) With the target character loaded in iClone 7, perform File > Export > Export FBX with the preset set the Maya.

2) Import the exported target character into Maya.

3) Switch Maya's mode to Rigging and select Skeleton > HumanIK to input a HumanIK skeleton.

Maya motion to ic create custom rig mapping.png

4) Press on the Create Custom Rig Mapping button to the right and click on Define' in the subsequent pop-up window.

5) In order to map iClone bones to HumanIK, you'll need to click twice on the target bone in the mapping window and select the corresponding bone in the view-port.

Using X-Ray mode is recommended to better access the joints.

6) Map the entire body including the feet, fingers, spine, shoulders, neck, and other miscellaneous bones.

Maya motion to ic bone mapping.gif

Beware: Even though automatic detail settings for the fingers are available, it will often cause the hand bones to offset.

Maya motion to ic mapping guide.png

7) Once the mapping is complete, press the Lock Skeleton Definition button on top, then click on the Create Control Rig button to the right of it. This will implement the control rig onto the iClone character.

Maya motion to ic skeleton definition.png

Animation Precautions

  • Make sure the FPS is set to 60.
  • Animation keys should be applied to the control rig and not directly onto the skeleton bones. The skeleton is locked and invisible by default (do not alter these settings, unless under special circumstances).
  • Squash and stretch animations should be avoided because it is not supported in iClone. Not only is the effect not able to import into iClone, but it can also cause some unexpected errors as well.
  • You can use Maya's Graph Editor to help adjust animations.

File Export and Inspection

Exporting FBX from Maya

1) Select all of the bones (115 in total) and the meshes.

Note: Do not select any of the rig controls, custom bones, and Biped objects.

2) Open File > Export Selection > File type > FBX export and enable Bake Animation under Edit Preset > Animation.

Maya motion to ic bake animation.png

3) Set Edit Preset > FBX File Format to FBX 2018 (any version from 2012 to 2018 is recommended).

4) Once the settings are complete, export the character.

Maya motion to ic fbx file format.png

RL Motion Conversion

1) Import the previously exported FBX file into 3DXchange with default import settings.

2) Press the Convert to Non-Standard button in the right Modify > Character menu.

3) Click on Load on the top right corner, select a RL mapping data file, and press the Convert button below.

4) Perform File > Export, enable Export Animation, and click on the OK button below to export a RL motion file.

Batch Export

1) Once the character is converted, drag a FBX for export from the Modify > Animation menu to the right.

2) Drag more animations to the Motion Library section, and click on Add All to Perform and all of the motions for export will show up inside Perform Editor.

3) Perform File > Export, enable Export Animation, and click on the OK button below to export all of the RL motion files.

Checking Animation Consistency in iClone

1) Open iClone and drag the character (*.iAvatar) into the view-port.

2) Drag the RL motion that was just exported onto the character or onto the timeline.

3) Check if the motions are different from the results in Maya.

Verification Process

1) Please provide the RL motion and Maya (*.mb) file.

2) Once an RL representative has reviewed your files, he/she will offer feedback when needed.