Profile Picture

Unity Auto Setup

Posted By Victor.Soupday 3 Years Ago
Rated 5 stars based on 10 votes.
Author
Message
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
CC/iC Unity Tools 1.6.2

Built-in (Unity 3D): https://github.com/soupday/cc_unity_tools_3D/releases  -  ( 3D
URP
: https://github.com/soupday/cc_unity_tools_URP/releases  -  ( URP10 / URP12 / URP14 / URP15 )
HDRP
: https://github.com/soupday/cc_unity_tools_HDRP/releases  -  ( HDRP10 / HDRP12 )

Documentation
: https://soupday.github.io/cc_unity_tools/
Full install instructions here: https://soupday.github.io/cc_unity_tools/installation.html#

Changelog:
1.6.2
  • URP Amplify shader fix for when there is no main light.
  • Work around to intermittent CC4 specular export issue when exporting with 'Bake diffuse maps from skin color' option (which is enabled by default now).
  • Fix to physics assignment when shared materials count does not match submesh count.
1.6.1
  • Magica Cloth 2 support for hair physics.
    • Magica Cloth and collider navigation tools added.
1.6.0
  • Fixes to root bones and physics components in LOD combiner.
  • Support for Magica Cloth 2 Physics (if present) - Cloth simulation and spring bones.
  • Collider Manager rebuild to support magica cloth
    • Collider editor now uses direct on screen manipulation of colliders.
  • Support for Json Schema 1.2
    • A bug in CC4 can cause the character to export with this schema.
  • Run time wrinkle material fix.
1.5.2
  • Animation Retargeter fixes.
    • AnimationMode removed.
    • Clip generation file name suffix corrected.
    • Animation Clip overwrite no longer breaks references.
    • Clip settings (foot IK, mirror, speed) reset to defaults on opening retarget window.
  • Character prefab generation no longer breaks references. (Except 2023.1.1-5 due to Unity bugs)
  • Rogue usings removed from code.
  • Animation processing fixes.
    • Correct character prefab used to retarget _motion.fbx files.
    • Animation Clip overwrite no longer breaks references.
1.5.1
  • Character Build no longer creates and adds a default animation controller due to bugs in Unity 2022/2023 causing memory leaks when applying animation controllers to prefabs.
  • Instalod and other renamed object/material name matching improvements.
  • Cloth physics fix for extracted non physics materials using 2-pass hair.
  • Shaders recompiled for URP10/12/15.
1.5.0
  • Animation player system rebuilt to remove AnimationMode and operate in play mode (in Editor).
    • New system includes foot IK preview, variable speed and camera bone targeting and play mode operation.
  • Optional (WIP) HDRP dual specular shader added for HQ skin. (Enabled in the import window options)
  • HDRP mask detail mask correction. (Export from CC4 not using correct micro normal mask)
  • HDRP lighting fix when first loading preview scene.
  • Batch processing window added.
  • Physics sphere collider support added.
  • Import procedure now processes all <character_name>_Motion.Fbx files with the character.
  • Fix to character build crash in Unity 2023.1
  • Fix to Diffusion profiles not saving to default volume asset in 2023.1.
1.4.9
  • Refresh button fix...
1.4.8
  • Fix to missing materials in shared material slots.
  • Fix to two pass hair extraction when re-using the same material.
  • Fix to hair mesh extraction when hair and non-hair materials share vertices.
  • Support for updated spring rigs from blender tools add-on.
  • Improved PhysX weight mapping from mesh to cloth vertices.
  • Added refresh button to importer window when no characters detected.
1.4.7
  • Brow correction added to wrinkle map system.
  • Wrinkle sets additive blending.
  • Wrinkle Manager configuration serialized, to allow for further customization.
1.4.6
  • Added ray tracing settings to preview scene lights.
  • Fix to HDRP diffusion profiles not setting up in HDRP14 (2022.2)
1.4.5
  • Flow maps added to wrinkle map system.
  • URP & 3D shader pass and recompile.
  • URP & 3D Baked wrinkle maps normal fix.
  • HDRP Preview scene lighting update (to replicate some CC4 atmosphere setups)
1.4.4.1
  • URP12 Shader flag pass & enable deferred rendering.
1.4.4
  • Full wrinkle map specification implemented.
    • Wrinkle map manager controls script on body mesh.
    • Added baking of wrinkle map system.
  • Spring Bone (Dynamic Bone) Hair physics, currently set up from Blender pipeline exports.
  • Import blend shape normals settings fixes.
  • Gamebase and PBR, SSS and smoothness adjustments.
  • Hair specular tint based on root + tip color.
  • Fix to bake not working with 2 pass hair materials.
  • Color space correction directives for baking.
1.4.3
  • Tries to untangle instalod duplication suffixes on accessories.
    • inc. Script error fix that was blocking build materials when instalod meshes were not found in Json data.
  • Cast shadows removed from Tearline, Eye occlusion and scalp meshes.
  • Stand alone shader packages for the various pipelines included in /Packages/ folder.
1.4.2
  • OSX and Linux file path support.
  • Tweaked character model importer settings for better normal import and blend shape normal generation. Should reduce mesh smoothing issues.
  • Disabled Menu Mesh Tools when not working on a generated prefab. (The tools cannot operate directly on an FBX)
  • Fixed Bake not replacing materials with baked versions.
  • Eye Occlusion shaders factor in Occlusion Color alpha value.
1.4.1
  • Traditional material glossiness fix.
  • High poly (sub-division) hair mesh extraction fix.
  • SSS Diffusion profile added.
  • Remembers last used lighting preset on character preview change.
  • Character icon list side bar can be dragged into a more compact list view.
    • Character list sorted alphabetically.
  • When HDRP Ray tracing is enabled:
    • The material build function will turn off ray tracing on the Scalp (when separeated), Eye Occlusion and Tearline meshes as it causes darkening artifacts on the underlying skin and eye surfaces.
    • (Typically the scalp is only separated from the hair materials when two-pass hair is enabled)
  • Bake Hair function now only bakes the result of the 'Enable Color' properties into the diffuse maps of the hair materials. Press again to revert to original diffuse maps.
  • Improved ActorCore and ActorBuild single material detection.
1.4.0
  • Import & Setup
    • ActorBuild detection separated from ActorCore (ActorBuild can have more advanced materials)
    • Fix to Instalod merged material characters detection.
    • Better detection of non-standard characters.
      • Rig animation type override (Humanoid / Generic) for non-standard characters.
    • Bone LOD characters reduced skeleton avatar generation fixed.
    • Animation player chooses from available animations when none found in character.
    • Blender to Unity imports fix for bounding box root bone issue.
    • Character Tree view shows all child renderer meshes regardless of depth.
  • Materials & Shaders
    • Lit SSS shader added for URP and 3D pipelines.
    • SSS material support added.
    • Traditional material support added.
    • Shader properties arrangement pass.
    • Material setup fix for non character objects (e.g. props from iClone)
    • Additional missing texture checks added to character bake function.
    • Amplify shaders recompiled with ASE 1.9.1.2.
    • Limbus dark ring corrected, iris should look brighter, clearer and less fuzzy at the edges.
  • Other
    • LOD combining function added.
      • Characters and LOD variants must be in same folder.
  • New icons added.
  • To maintain consistency across Unity versions, the HDRP package will be split into 2 versions:
    • HDRP10 for the High Definition Render Pipeline version 10 and 11: Unity 2020.3 upto 2021.1
    • HDRP12 for the High Definition Render Pipeline version 12 and 13: Unity 2021.2 upwards.
Edited
Last Month by Victor.Soupday
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
As shown in this thread, a WIP demo of the shaders:



And a work in progress demo of the import and setup procedure:


Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
I've been improving the Eye Occlusion and Tearline shader:

https://forum.reallusion.com/uploads/images/ae998b7e-ed2a-46cc-8c95-989c.png

https://forum.reallusion.com/uploads/images/d663165b-ebc3-42fc-a6bf-2abe.png

Here I've added top, bottom, inner and outer occlusion and displacement controls as well tear duct alignment and an overall contrast (power) control.

https://forum.reallusion.com/uploads/images/d2c8e699-ec8e-44cd-84fd-1d14.png

The Tearline is simpler with a depth offset and an extra inner offset to help align with the tear ducts.
Edited
3 Years Ago by Victor.Soupday
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
Skin micro roughness/smoothness and subsurface scatter masking.

Bundled with the export are a whole bunch of RGBA id masks. There are three for the face to mask fine controls for the nose, cheeks, chin, eye lids, forehead, lips, mouth etc, as well as overall fine controls. Each body section also has it's own RGBA mask.

https://forum.reallusion.com/uploads/images/3813eea9-504f-4dc1-920a-1cbf.png

Which admittedly look complicated in the shader graph:

https://forum.reallusion.com/uploads/images/2544a5a9-820f-440e-8027-1b8e.png

But they have been the missing piece of the puzzle in getting the Unity visuals more on par with the CC3 visuals:

https://forum.reallusion.com/uploads/images/6ef1dbc7-cc57-49d8-9ed5-f662.png https://forum.reallusion.com/uploads/images/8ec4c487-a304-424b-ab97-49ca.png

https://forum.reallusion.com/uploads/images/92034d32-b759-4e99-aebf-ccf7.png https://forum.reallusion.com/uploads/images/2a2a73a6-5e1d-478d-9170-45da.png

https://forum.reallusion.com/uploads/images/05f29b4a-679c-413a-aea1-37a1.png https://forum.reallusion.com/uploads/images/7b9c7bf7-eb62-4a39-aece-080a.png

Obviously my lighting setup in Unity isn't quite the same, but this has been as close as I have been able to get the so far. Also the CC3 screen-shots have a lot of anit-aliasing, and these Unity screen-shots don't have any.
Edited
3 Years Ago by Victor.Soupday
merph
merph
Posted 3 Years Ago
View Quick Profile
Junior Member

Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)Junior Member (176 reputation)

Group: Forum Members
Last Active: 3 Years Ago
Posts: 7, Visits: 128
Interesting! I always thought those masks had something to do with wrinkle maps. But I guess thats not right BigGrin But I have a question, does cc3 exports anything related to wrinkle maps or something that can be used to have dynamic wrinkles by distorting normals?(the old good way of wrinkles)

Plus, are you planning to release HDRP version before the URP or are you going to wait until URP version is also out and share them both?
Edited
3 Years Ago by merph
animagic
animagic
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)Distinguished Member (32.5K reputation)

Group: Forum Members
Last Active: 9 hours ago
Posts: 15.7K, Visits: 30.5K
Victor, I must say, you do know shaders. Impressive.

I'm just a bystander as I don't use Unity, but I think this will help those that do.


https://forum.reallusion.com/uploads/images/436b0ffd-1242-44d6-a876-d631.jpg

Necka
Necka
Posted 3 Years Ago
View Quick Profile
Veteran Member

Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)Veteran Member (535 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 62, Visits: 407
This looks amazing but I'm afraid that for games, having characters using those advanced shaders and all the default materials (around 10 and more depending on the characters) might not be good for crowded areas with NPCs where having merged materials/LOD is usually better as you don't go close-up or see their expressions

Will your tool offer a solution for LOD/Remesher characters with obviously less advanced materials?
Currently when importing with Auto-Setup a character that have Smart Hair / new brows and beard system it's a visual disaster
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
merph (7/12/2021)
Interesting! I always thought those masks had something to do with wrinkle maps. But I guess thats not right BigGrin But I have a question, does cc3 exports anything related to wrinkle maps or something that can be used to have dynamic wrinkles by distorting normals?(the old good way of wrinkles)


Haven't seen anything that might relate to wrinkle maps, though you could reuse some of the RGBA masks for that purpose.

Plus, are you planning to release HDRP version before the URP or are you going to wait until URP version is also out and share them both?


HDRP first. I want to get that (mostly) right before starting work on the URP and built-in. Otherwise any changes needed will be triple the amount of work to correct.
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
animagic (7/12/2021)
Victor, I must say, you do know shaders. Impressive.


BigGrin
Victor.Soupday
Victor.Soupday
Posted 3 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)Distinguished Member (5.2K reputation)

Group: Forum Members
Last Active: Yesterday
Posts: 519, Visits: 7.2K
Necka (7/12/2021)
This looks amazing but I'm afraid that for games, having characters using those advanced shaders and all the default materials (around 10 and more depending on the characters) might not be good for crowded areas with NPCs where having merged materials/LOD is usually better as you don't go close-up or see their expressions


It does work with Game Base and InstaLod characters, they are much simpler to setup as they are just the base PBR maps. The question on my mind is how to deal with the transparency. If there is any transparency, even just the eyelashes, it will render the whole character in the transparency queue which will be bad for performance, and as you have no doubt seen, Unity makes a god-awful mess of alpha blending. The alternative is to set the material to opaque with alpha clip, and that's what I'm going with for now.

Will your tool offer a solution for LOD/Remesher characters with obviously less advanced materials?
Currently when importing with Auto-Setup a character that have Smart Hair / new brows and beard system it's a visual disaster


That's what I'm going to look at next.



Reading This Topic