Profile Picture

Unity Auto Setup

Posted By Victor.Soupday 4 Years Ago
Rated 5 stars based on 12 votes.
1
...
37
38
39
40
41
...
58

Author
Message
Victor.Soupday
Victor.Soupday
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: 6 days ago
Posts: 569, Visits: 9.0K
Unity Auto-setup Release 1.4.4

Built-in (Unity 3D): https://github.com/soupday/cc_unity_tools_3D/releases
URP: https://github.com/soupday/cc_unity_tools_URP/releases
HDRP: https://github.com/soupday/cc_unity_tools_HDRP/releases

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

Changelog:
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 set-ups)

Some updates to the wrinkle map system and (HDRP) lighting.


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

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: 6 days ago
Posts: 569, Visits: 9.0K
chuckterzian (2/24/2023)

Hello, I'm using Unity 2022.2.5f1 and I downloaded and installed the newest version CC4 and the Unity Auto Setup and upon pressing the Build Material button I see a few errors, and things don’t look like they should. 


Error type 1 (repeats for a few materials):


Unable to find json material data: Back_Loin/Materials/Top_2

UnityEngine.Debug:LogError (object)

Reallusion.Import.Util:LogError (string) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Util.cs:1119)

Reallusion.Import.CharacterInfGetMatJson (UnityEngine.GameObject,string) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/CharacterInfo.cs:413)

Reallusion.Import.Importer:ProcessObjectPrepass (UnityEngine.Renderer) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:425)

Reallusion.Import.Importer:ProcessObjectTreePrepass (UnityEngine.GameObject) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:406)

Reallusion.Import.Importer:Import () (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:258)

Reallusion.Import.ImporterWindow:ImportCharacter (Reallusion.Import.CharacterInfo) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importerwindow.cs:1115)

Reallusion.Import.ImporterWindow:BuildCharacter () (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importerwindow.cs:1184)

UnityEditor.EditorApplication:Internal_CallDelayFunctions ()



Error type 2 (only appears once):


NullReferenceException: Object reference not set to an instance of an object

Reallusion.Import.Importer.ConnectDefaultMaterial (UnityEngine.GameObject obj, System.String sourceName, UnityEngine.Material sharedMat, UnityEngine.Material mat, Reallusion.Import.MaterialType materialType, Reallusion.Import.QuickJSON matJson) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:988)

Reallusion.Import.Importer.ProcessTextures (UnityEngine.GameObject obj, System.String sourceName, UnityEngine.Material sharedMat, UnityEngine.Material mat, Reallusion.Import.MaterialType materialType, Reallusion.Import.QuickJSON matJson) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:760)

Reallusion.Import.Importer.ProcessObjectBuildPass (UnityEngine.Renderer renderer) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:385)

Reallusion.Import.Importer.ProcessObjectTreeBuildPass (UnityEngine.GameObject obj) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:352)

Reallusion.Import.Importer.Import () (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importer.cs:264)

Reallusion.Import.Importerwindow.ImportCharacter (Reallusion.Import.CharacterInfo info) (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importerwindow.cs:1115)

Reallusion.Import.Importerwindow.BuildCharacter () (at ./cc_unity_tools_HDRP-1.4.4.HDRP12/Editor/Importerwindow.cs:1184)

UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at <00d63564201b48698d51680c10078897>:0)


Please advise on what I need to do to fix this or if there is a fix on the way. Thank you!



That's interesting, there's a mis-match between the object and/or material names in the character Fbx with the object/material names in the JSON data.
It's looking for an object called Back_Loin with a material called Top_2, but they don't seem to exist in the Json data.
So it can't find the data to set up the characters materials correctly. (And then it hits a null reference and just gives up at that point)

I think this might be an old export bug in CC3/4 when there's a space in the material or object name and it writes the wrong name into the Json data.

The null reference is easy to fix, but why don't the names match up? Can you attach the json data file for the character? There might be a way to work around it.
felgryn
felgryn
Posted 2 Years Ago
View Quick Profile
Senior Member

Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 15, Visits: 367
Hi Victor,

 First off - wonderful, wonderful tools. I'm so glad that your impressive platform is now formally part of the Reallusion offering - i couldn't image trying to port the realism from Reallusion into Unity without your fantastic CC/iC Unity tools. I've been working with the cloth physics transfers - and have had good success with applying your tools to clothing - very realistic behaviour in multiple Unity settings. I'm trying to figure out how best to port hair mechanics. I note in this video of Camila with extreme facial movement:

https://forum.reallusion.com/FindPost531333.aspx

there is subtle, natural, and realistic hair movement. I've tried with hair physics on my current rig - and have a pony tail that seems to stay mostly static. Could you share which hair asset you used for this Camila example - and which settings you utilized in Unity and your tools to achieve this great hair result? Many thanks!

 -Felgryn
Victor.Soupday
Victor.Soupday
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: 6 days ago
Posts: 569, Visits: 9.0K
Unity Auto-setup Release 1.4.7

Built-in (Unity 3D): https://github.com/soupday/cc_unity_tools_3D/releases
URP: https://github.com/soupday/cc_unity_tools_URP/releases
HDRP: https://github.com/soupday/cc_unity_tools_HDRP/releases

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

Changelog:

v 1.4.7
  • Brow correction added to wrinkle map system.
  • Wrinkle sets additive blending.
  • Wrinkle Manager configuration serialized, to allow for further customization.
v 1.4.6
  • Added ray tracing settings to preview scene lights.
  • Fix to HDRP diffusion profiles not setting up in HDRP14 (2022.2)
v 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)

This should be the last update for the wrinkle map system and leaves it feature complete, using all the features such as the flow maps, brow correction, individual strengths. It should render very close to the results in CC4. I've exposed the wrinkle map config in the Wrinkle Manager script on the body mesh. This should allow for further customization such as turning individual wrinkles on or off or altering their relative strengths, etc.
Victor.Soupday
Victor.Soupday
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: 6 days ago
Posts: 569, Visits: 9.0K
felgryn (3/3/2023)
Hi Victor,

 First off - wonderful, wonderful tools. I'm so glad that your impressive platform is now formally part of the Reallusion offering - i couldn't image trying to port the realism from Reallusion into Unity without your fantastic CC/iC Unity tools. I've been working with the cloth physics transfers - and have had good success with applying your tools to clothing - very realistic behaviour in multiple Unity settings. I'm trying to figure out how best to port hair mechanics. I note in this video of Camila with extreme facial movement:

https://forum.reallusion.com/FindPost531333.aspx

there is subtle, natural, and realistic hair movement. I've tried with hair physics on my current rig - and have a pony tail that seems to stay mostly static. Could you share which hair asset you used for this Camila example - and which settings you utilized in Unity and your tools to achieve this great hair result? Many thanks!

 -Felgryn



It's Camila's hair, but processed in Blender for spring bones:

Something like this:



See the Blender add-on post.
felgryn
felgryn
Posted 2 Years Ago
View Quick Profile
Senior Member

Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)Senior Member (330 reputation)

Group: Forum Members
Last Active: 4 Months Ago
Posts: 15, Visits: 367
Hi Victor,

 Brilliant! This is a super helpful workflow - and produces a lovely result. Thanks so much! Your tools, documentation, and tutorials are amazing - and only matched by your awesome support!

 Cheers!

  -Felgryn
Ryan Hayle
Ryan Hayle
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 49, Visits: 375
Hi, could you add a refresh button, so we don't have to close and open it all the time? Thank you!

kostia.liakhov
kostia.liakhov
Posted 2 Years Ago
View Quick Profile
New Member

New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)New Member (8 reputation)

Group: Forum Members
Last Active: Last Year
Posts: 3, Visits: 55
Hi Victor, thanks for creating this wonderful tool and helping us mere mortals to make it work correctly :)

I'm trying to export my model from CC 4 to Unity using CC/iC Importer URP 1.4.7. In general it looks lovely and was quite easy to set up, but I'm having an issue with the hair shader. For some reason, the hair shader doesn't receive any shadows cased by my lights. It looks really bright and highlighted, even when the character is in shadow/indoors. I narrowed down the problem to Hair_Transparency_0_2nd Pass material that's using RL_HairShader_2ndPass_Variants_URP shader, it seems not to "catch" the shadows casted by my lights.

Attaching screenshots of the character in Unity in and out of the shadow, you can see in one of them the hair is a little artificially shiny.
So far I was able to make it look ok by changing Diffuse Strength to 0, but I feel like there may be a better solution?

Thanks in advance!

https://forum.reallusion.com/uploads/images/fb958cf4-cbc4-4c77-83e6-7148.png
https://forum.reallusion.com/uploads/images/8a35a43a-83c1-4fa7-82b8-dfd3.png
Victor.Soupday
Victor.Soupday
Posted 2 Years Ago
View Quick Profile
Distinguished Member

Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)Distinguished Member (5.8K reputation)

Group: Forum Members
Last Active: 6 days ago
Posts: 569, Visits: 9.0K
Hard to tell without knowing what lights are in the scene.

If it's one the preview scene lighting setups, then some of the lights may be set not to cast shadows. So you may want to rule that out.

Also if there is more than one directional light in the scene, only the strongest one will cast shadows. And in addition to only one directional light casting shadows, only spot lights can cast real time shadows.

The best way to test shadows is with one light at a time.


Ryan Hayle
Ryan Hayle
Posted 2 Years Ago
View Quick Profile
Veteran Member

Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)Veteran Member (550 reputation)

Group: Forum Members
Last Active: 8 Months Ago
Posts: 49, Visits: 375
I get the following error when building in Unity 2022.2 URP 14:
Shader error in 'Reallusion/Amplify/RL_SkinShader_Variants_URP': maximum ps_4_0 sampler register index (16) exceeded at line 509 (on d3d11)


1
...
37
38
39
40
41
...
58



Reading This Topic