Profile Picture

Special Notice: CC Unity Auto-Setup Script (Beta 1.0)

Posted By Miranda (RL) 6 Years Ago
Rated 5 stars based on 1 vote.
Author
Message
Miranda (RL)
Miranda (RL)
Posted 6 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)Distinguished Member (62.8K reputation)

Group: Administrators
Last Active: 2 Years Ago
Posts: 1.8K, Visits: 11.2K
March 19th update: the Beta 2.0 script is released. Please find the process HERE.

Introduction

The process of bringing an animated CC character into the Unity can be tedious.  This is exacerbated by the inordinate amount of time it would take to manually assign every material property, adjust texture settings, modify animation properties, model configuration, along with other complicated manual tasks.  In response, we are providing this plugin to trim your production time by automating the aforementioned idiosyncrasies.


Process Overview
  1. Export FBX from Character Creator 3
  2. Download and Install the Auto-Setup Script
  3. Import the FBX File into Unity to Prompt Auto-Setup Process
  4. Adjust Some Settings in Unity (Optional)

Step 1 - Export FBX from Character Creator 3
  1. Materials and textures with the same name cannot be correctly configured, causing them to adopt the same attributes.  Because Unity treats objects of the same name in identical fashion, one should give a proper name to each individual object in Character Creator 3 before export.
    *From CC v3.05 onwards, identical material names from different objects will automatically append a sequential number suffix.

    Example: The auto-setup results in Unity when there are different material/texture names on shirts & jeans.https://forum.reallusion.com/uploads/images/c32d1176-bf52-4c82-bdb8-280c.png

    Example: The auto-setup results in Unity when there is same material/texture name on shirts & jeans.
    https://forum.reallusion.com/uploads/images/30a83c94-a8a9-421e-8591-510d.png

    Example: The auto-setup results in Unity when there is same material/texture name on the arrows.
    https://forum.reallusion.com/uploads/images/3e66f6b1-1e85-417a-8c0c-3409.png

  2. Choose the Target Tool Preset as Unity 3D.
  3. Uncheck the Embed Textures option. Auto-Setup Script will automatically connect all textures to the proper channels in Unity.
  4. Characters and motions can be exported from Character Creator.  If one needs motions from iClone, please save them in rlMotion or iMotionPlus format and bring them into the Character Creator workflow. The first motion file should be T-pose for correct re-targeting, and the file name must be "0_T-pose".
    *From CC v3.04 onwards, T-pose will be automatically added as the first motion file when exporting motions.
    https://forum.reallusion.com/uploads/images/bb6e5b89-5e9a-4c35-807f-9fc8.png

  5. Please create a new folder for each new character import.  Importing multiple characters into the same folder directory will create problems with texture map configurations. 
    https://forum.reallusion.com/uploads/images/82bd264e-6e7d-46c9-aba0-a3d4.png


Step 2 - Download and Install the Auto-Setup Script

There are two ways to install the Auto-Setup Script in Unity. The Editor folder and the CC_Assets folder will be automatically generated under the Assets folder after installed.
  • Drag the Auto-Setup Script to the Assets folder in Unity
    https://forum.reallusion.com/uploads/images/57d38031-fa7b-4036-87eb-1b95.png

  • Import the Auto-Setup Script by right-clicking the Assets folder.
    https://forum.reallusion.com/uploads/images/35705054-111f-41e0-aea8-a39e.png

Step 3 - Import the FBX File into Unity to Prompt Auto-Setup Process
  1. Drag the exported folder which contains .fbm, textures, .fbx to the CC_Assets Folder.
    https://forum.reallusion.com/uploads/images/81ab9830-7501-4c01-9473-e554.png

  2. There will be a Prefabs folder, a Materials folder, and an animator controller file generated after processing.
    https://forum.reallusion.com/uploads/images/0699dee0-6d3f-44a4-a1c0-f583.png

  3. Character will be shown up after dragging the file (.prefab) under the Prefabs folder to the scene.
    https://forum.reallusion.com/uploads/images/6594510a-b091-4f94-809b-6ebb.png

Step 4 - Adjust Some Settings in Unity (Optional)
  • Correct the Rendering Mode for each element. Take the warrior overskirt for reference.
    https://forum.reallusion.com/uploads/images/d57d4d36-76d2-4ecb-a124-aaf6.png

  • Before adjusting the settings of the imported CC assets, make sure that Auto-processing for CC Character > Auto-Processing is turned off.  These adjustments can include tweaking motions and replacing materials.
    https://forum.reallusion.com/uploads/images/8343b349-55f1-416b-bd0c-ddcc.png

Script & Tutorial

To download the Auto-Setup Script, and learn more details from step-by-step training videos, please visit >>
https://forum.reallusion.com/396261/CC3-to-Unity-Importing-CC3-Base-Characters-to-Unity-Using-a-Script-for-Auto-Setup


Important Considerations

To run the auto-processing effectively, please read the following notices first:
  1. There is only full support for Character Creator 3 G1 and G3 characters with FBX being the primary format of exchange.
  2. Characters and motions should all be exported from Character Creator.  Be aware that characters processed directly from iClone or 3DXchange may need some manual re-assignments for motion re-targeting.
  3. Please import each character separately as unexpected issues may arise from importing multiple characters at once; such as improper linkages to texture files.
  4. Some special keywords in the naming of FBX file and/or materials can interfere with the auto-processing procedure.  Since the following keywords are used to identify specific features for configuration, it is best to avoid using them: diffuse - ao - normal - metallicAlpha - metallic - roughness - glow - specular - transparency - hair - eyelash - ga_skin_body - skin - loop LOD0~N
  5. There is no support for auto-assignment of BlendDisplacement and Reflection channels.
  6. Daz characters in CC that have not undergone replacement for the eyeballs will cause the eyes to turn white when imported into Unity.  This issue will be addressed in a future update (Script Beta 1.1), for now, one can easily remedy this issue by changing the cornea material's Rendering Mode to Transparent and changing the Albedo alpha to zero in Unity.
    https://forum.reallusion.com/uploads/images/ed626b17-5753-4fd2-9e0a-31df.png

  7. Unity and Character Creator calculates mesh normals in a fundamentally different manner which can cause mesh edges to appear hard inside Unity.  Fix this by trying out different settings for the Normal & Tangents > Normals parameter.  However, before doing so, don't forget to disable Auto-Processing


Edited
5 Years Ago by Miranda (RL)



Reading This Topic