This blog post describes experiments with embedding the Ready Player Me Avatar Creator into an application. Initially I wanted to create a reliable and repeatable workflow to take Ready Player Me avatars into Second Life or OpenSim. This process used Ready Player Me, .glb avatar download, conversion to FBX and texture extraction using Blender, reposing the avatar into T-Pose using Mixamo, reimporting the resulting avatar back into Blender, and then Mixamo skeleton conversion to a suitable armature for Second Life and OpenSim using Bento Buddy (a paid addon to Blender) and export of the Collada (.dae) also using Blender/Bento Buddy. The Collada export from Blender even using the tick box for SL/OpenSim use just does not work since the skeleton is not mapped in a way that works with Second Life and OpenSim. All tools are free expect for the Bento Buddy addon.

Luckily while exploring this and discussing the process with Ready Player Me developers on Discord, the capabilities of the Ready Player Me Avatar Creator were being refined and an “Avatar API” was being developed and tested. It was formally given a first release on 28-Sep-2022. This Avatar API allows the download URL for Ready Player Me avatars to be given parameters which allow a number of useful things, including obtaining the avatar directly in T-Pose hence avoiding needing to go via Mixamo for this step. This simplified the workflow I was seeking and meant that a separate application was not necessary.

The experimentation and current simplified process are described in this blog post:

  • Tested in Blender 3.2.0 and 3.3.0
    Check the glTF Import/Export and FBX Import/Export Addins are enabled (they usually are by default or tick them in Edit -> Preferences -> Add-ons).
  • Tested in Bento Buddy – (Paid Add-on)
  • Tested in Second Life Viewer 6.6.3 and Firestorm Viewer OS 6.6.3

Simplified Workflow for Avatar using Multiple Faces and in T-Pose

  1. Obtain Ready Player Me avatar .glb URL
  2. Download avatar URL with ?textureAtlas=none&pose=T on the end
  3. Start Blender and delete the default camera and light
  4. Import .glb to Blender and check avatar is in T-Pose
  5. Extract textures via Texture Paint tab
  6. To fix the issue of the fingers being deformed in a relaxed pose, the steps in the bullets below should be undertaken BEFORE doing the character conversion. Missing out these steps will still give a reasonable avatar but leave the fingers deformed.
    • Add (temporarily) the Bento Buddy Rig Creation Safe Rig which have splayed fingers as expected in Second Life and OpenSim) to act as a comparison to the Ready Player me T-Pose which has the fingers straight.
    • Enter Blender Pose Mode. It is also useful to set skeleton to be in front in Viewport Display.
    • Rotate the avatar finger and thumb bones to closely match the reference rig. Its best not to scale or move them to avoid bad hand positions.
    • Note that you can save this “T-Pose with Fingers Splayed” pose for use in future via Bento Buddy Animation -> Enable Posing Library
    • Select the avatar “Armature” and under Bento Buddy Rig Tools click the “Rebind associated mesh” button.
    • Check that the Pose and Rest Pose for the mesh are now identical (with splayed fingers).
    • Remove the temporary Bento Buddy reference safe rig.
  7. Under Bento Buddy Character Converter, load the mixamo_no_prefix map (Ready Player Me avatars have a Mixamo compatible skeleton) and click Convert
  8. Use Bento Buddy to export for Second Life/OpenSim (select all three options including Project Full Rig)
  9. Import to Second Life/OpenSim ticking both “Include Skin Weights” and “Include Joint Positions”
  10. Attach the uploaded mesh avatar (e.g. to Avatar Center)
  11. Texture the mesh faces using the Diffuse textures and Normal Maps (for bumpiness). The shininess/metallic textures don’t work well and may be omitted
  12. Optionally make some parts transparent (such as hair and glasses, hats, etc) to allow use of in world attachments for those parts
  13. Try the Avatar Shape sliders as many will work
  14. You could add a hand relax low priority pose into the mesh

Ready Player Me Subdomain Experiment

Ready Player Me Documentation

Ready Player Me Avatar API – 3D (.glb), 2D (.png) and JSON (.json) (Multiple faces and separate materials, T-Pose) (Single face and one material (1024 max.), T-Pose)[Wolf3D_Head][mouthSmile]=0.8

JSON Metadata Example

Venturebeat blog post describing the Avatar API, Dean Takahashi, 11-Oct-2022.

Ready Player Me Avatar in OpenSim

This entry was posted in Virtual World and tagged , . Bookmark the permalink.