Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

UMA - Unity Multipurpose Avatar on the Asset Store!

Discussion in 'Assets and Asset Store' started by FernandoRibeiro, Dec 24, 2013.

  1. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    This is what I use and it works

    Note: Its part of UMAUtility script, thats why they are static

    For OverlayColorData...look at the SimpleEyeColor scriptable object (Which I also use in my cc)

    Code (CSharp):
    1. public static void ChangeColor(DynamicCharacterAvatar avatar, string colorName, Color ColorValue, Color metallicRGB = default(Color))
    2.     {
    3.         // ColorName = "Skin", “Hair”
    4.         avatar.SetColor(colorName, ColorValue, metallicRGB);
    5.         avatar.UpdateColors(true);
    6.     }
    7.     public static void ChangeColor(DynamicCharacterAvatar avatar, string colorName, OverlayColorData color)
    8.     {
    9.         // ColorName = "Skin", “Hair”
    10.         avatar.SetColor(colorName, color, true);
    11.         avatar.UpdateColors(true);
    12.     }
    13.  
     
    J_Kasowski and hopeful like this.
  2. J_Kasowski

    J_Kasowski

    Joined:
    Jan 3, 2023
    Posts:
    15
    Thank you! I ended up finding the UMA DCS Demo which is exactly what I was trying to create in the first place :p
     
  3. jurijc

    jurijc

    Joined:
    Jul 17, 2019
    Posts:
    13
    Hey Jaimi, I switched from "Humanoid" to "Generic" in "UMA Target" to fix animation issues between Unity and Blender. This caused my DNA-configured heels to stop working. I think I can replace DNA with IK for heels. Are there other things that don't work with "Generic"?
     
  4. J_Kasowski

    J_Kasowski

    Joined:
    Jan 3, 2023
    Posts:
    15
    I have to again apologize for my newness to UMA... Is there a working version of UMA for HDRP?
    I found the "HDRP Test" content.

    1) Created New HDRP Project with Unity 2022.3.1f1 (LTS)
    2) Imported UMA 2.12.0
    3) Went to UMA -> Content -> Example -> HDRPRaces, imported HDRP-Races package
    4) Opened HDRP Test Scene. Initially all materials were pink
    5) Used the HDRP Wizard to convert all Materials to HDRP. The ground materials were fixed but the person remained pink:
    upload_2023-12-3_19-25-42.png

    6) Used "Generate Shader Includes" and hit play
    7) The UMA_Renderer deleted itself and I got the following error messages:
    upload_2023-12-3_19-27-24.png

    From the small amount of research I've done on this, it seems like HDRP should be supported now. I tried manually changing the property names and got it to render, but I'm not sure what needs fixed still:
    upload_2023-12-3_19-46-36.png

    Edit: I found the non-set textures under the SkinnedMeshRenderer materials but the setup is different than non-HDRP UMA characters. The naming isn't straightforward either with the textures so if anyone knows which textures go where (or how to fix HDRP in general), the help would be highly appreciated!
     
    Last edited: Dec 4, 2023
  5. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    HDRP and UMA work fine together (see video below). Its a matter of getting the materials and overlays correct.

    In your example, which race did you pick? The HDRP update add two new races, the others are not converted.

     
    J_Kasowski likes this.
  6. J_Kasowski

    J_Kasowski

    Joined:
    Jan 3, 2023
    Posts:
    15
    Hmmm, you may be on to something. In the HDRP Test scene, the default race is just "HumanFemale" and not "HumanFemaleHD". However, HumanFemaleHD does not appear as an available race on the dropdown. Is there something I need to do with the "RaceData" to add a new race to the DynamicCharacterAvatar object?
    upload_2023-12-4_11-12-19.png

    Edit: I'm also using the UMA 2 from the asset store. I looked at the HDRP branch on Github but it says deprecated. I'm assuming it's deprecated because the main UMA should now work in HDRP

    Edit #2: The race updater doesn't seem to do anything. I put "Human Female HD" in the "Race to Update" setting and "UMA_Lit" (from the HDRP_Races folder) as the "New Material". It just says "No slots found" and has no option to submit
     
    Last edited: Dec 4, 2023
  7. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    Did you try updating the global library? (just re-add everything)

    Note: You have done a lot of steps/attempts. You make want to try to re-import the hdrp races again and add them to the global library.

    Note 2: I did my conversion manually. I use the WilB's races. But the process is the same.

    Find the race file.
    Find the slots used and their overlays.
    Find the materials the overlays use.
    Which then points to a Unity Material.

    Start converting from Unity Material to a HDRP Material -> Fix UMA Material -> Fix Overlay -> Fix Slot
     
    Last edited: Dec 4, 2023
    J_Kasowski and hopeful like this.
  8. J_Kasowski

    J_Kasowski

    Joined:
    Jan 3, 2023
    Posts:
    15
    Ahh, I think you are correct and the issue is with the slots. The first error was about the eye slot, I was able to fix that.

    It is now giving me an "Unable to find SlotDataAsset: SlotDataAssetPlaceholder"... When I try to edit the slots, it tells me the placeholder is not indexed:
    upload_2023-12-5_10-7-47.png

    upload_2023-12-5_10-8-7.png

    When inspecting the OverlayDataAssetPlaceholder, it shows me the UMA Materials that it uses. I converted those:
    upload_2023-12-5_10-12-11.png

    However, it still does not allow me to "Add to Global Index" (I click it and nothing happens).

    What are WilB's races? I tried google and nothing came up.


    EDIT: I was able to figure out the re-mapping on the regular "HumanFemale" and "HumanMale" races. Not sure why the HD example is broken... Maybe if I have time I'll write something that will automatically convert the race's materials. Thanks for the help figuring this out!!

    Edit #2: Scratch that, I did not figure it out. The eyes were normal looking and it appeared overlays were working except for the whole body had the "Not Set" texture. I cleared the generated textures folder and thought it was working. I didn't realize that when I did that, the eyes no longer overlay correctly and I realized I don't think the face overlay was ever working. Any chance you know of a working repository that has HDRP UMA characters pre-setup?
     
    Last edited: Dec 5, 2023
  9. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    He was a creator for UMA content. He has since shut down his store pages.

    lol I should make a video on this, since it seems to keep coming up.
     
    J_Kasowski likes this.
  10. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    I created a new HDRP project

    Downloaded the store version of UMA (2.12) and installed

    Found the HDRP-Races unity package

    Installed the package

    Opened the Global Library Window and dragged the UMA folder to the "Drag Indexable assets..." button

    Added UMA to the scene.

    Selected the HumanFemaleHD race

    Just worked


    Personally, I don't like that implementation. I prefer multiple materials for the race.
     

    Attached Files:

    • uma.png
      uma.png
      File size:
      838.9 KB
      Views:
      10
    lcompton and J_Kasowski like this.
  11. J_Kasowski

    J_Kasowski

    Joined:
    Jan 3, 2023
    Posts:
    15
    upload_2023-12-6_11-25-4.png

    You are a scholar and I love you. Not sure why the indexing button is broken but I would have spent an incredible amount of time figuring this out without your help. Thank you so much
     

    Attached Files:

    JeffG likes this.
  12. JeffG

    JeffG

    Joined:
    Oct 21, 2013
    Posts:
    81
    I should of made a video...the idea of "teach a man to fish..."

    but anyways, I converted the HighPoly race to hdrp. Probably has been done before, but here it is anyways.

    This should work

    https://www.dropbox.com/scl/fi/r7fj...ypackage?rlkey=0wxhyiba5t22lokt29fdpoeea&dl=0

    Install Notes:

    Install package. This overwrites the male and female highpoly definition

    Open the Global Library Window and dragged the UMA\Content\UMA_HDRP folder to the "Drag Indexable assets..." button

    The first time you select the highpoly race the character will probably be green. Go to the project hierarchy and find the UMARenderer. Expand the UMA_HDRP_Skin material and for the Diffusion Profile select the "fix" option. This will register the profile in the HDRP gloabl settings.
     

    Attached Files:

    Last edited: Dec 7, 2023
    lcompton and hopeful like this.
  13. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    95
    This is great information. I'm not sure where to find the HDRP-Races package. I thought it might be on the asset store, but I couldn't find it.
     
  14. lcompton

    lcompton

    Joined:
    Mar 31, 2018
    Posts:
    95
    Never mind. I found it. For those who have the same question, the package file is installed with UMA2 and is located at the following path...
    • Assets\UMA\Content\Example\HDRPRaces\HDRP-Races.unitypackage
     
    borgstation and hopeful like this.
  15. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,179
    DNA heels should continue to work, unless you have specifically animated them, then the animation of the bone would take precedence over the DNA.

    Sorry for the late response, I wasn't getting update notices for the thread again.
     
    Last edited: Dec 22, 2023 at 3:18 PM