Tutorial: How To Turn Your Custom Mesh into a Metahuman

July 30, 2022
10 min read
By
Rokoko

Editor note - Metahuman Creator is in active development and is frequently updated. This article was written in August 2022, and the exact process may have changed or a range of new features may be added. We will update this article as appropriate. If you have questions, feel free to jump onto Rokokoโ€™s community Discord.ย โ€

Ready for some good news today? A new Metahuman plugin thatโ€™s about to eliminate 99% of the work you put into creating digital human game characters.ย The mesh-to-metahuman plugin feature allows you to turn any 3D human mesh into a Metahuman in a few simple steps. This makes it easier than ever to create epic content, ready-to-animate characters from photogrammetry scans of an actor, and even more stylized characters from downloaded meshes created using traditional modeling tools.ย 

Now you can create Metahumans with more stylized features for games. This was generated using a unique static mesh of a Jinx-like character.

Today we're going through the entire mesh-to-metahuman workflow, and we're going to get our metahuman hooked up with Rokoko motion capture. Itโ€™s a great workflow for indie game developers and studios. This tutorial will use a custom facial mesh (also known as a bust sculpt), but the method should also work for a full body scan.ย Download the free resources used in this tutorial here โ†’ย 

What requirements does your mesh need for the Metahuman plugin to work?ย 

Itโ€™s not a complicated process as long as you keep in mind a few simple rules:ย 

  • Your mesh needs a UV Map. Even an auto-generated UV map will do. If your mesh doesnโ€™t have a UV map, open it in 3D software like Cinema4D or Autodesk Maya and quickly generate one.ย 
  • You need to remove all hair obstructing the face. If there are hair elements on the forehead or cheeks of the original mesh, Metahuman Creator wonโ€™t be able to interpret the shape correctly. If the hair is modeled on the skull but isnโ€™t overlapping anything (like on our Nicola Tesla model shown below), itโ€™s perfectly usable.ย 
  • Delete all non-essential elements. Remove anything not part of the main mesh, such as jewelry or clothes. If youโ€™re using a textured mesh, remove it and apply the standard object texture.
  • Only the eyes, nose, and mouth region is 100% necessary. ย You donโ€™t need to follow a metahuman topology template or anything fancy. This plugin is pretty robust as long as it has those key features for a facial rig. You can remove a large portion of the mesh without issue. Even the ears arenโ€™t essential.ย 
Even a mesh such as the one shown above can be used to generate a MetaHuman.

With your bust cleaned up and saved as a .fbx, go back into Unreal Engine, create a new project, and import the mesh.ย To continue, youโ€™ll need to download two plugins:ย 

Once downloaded, enable both plugins in your project and restart Unreal.ย 

How to create a custom Metahuman from your mesh

With the mesh in your project file and your plugins installed and activated, youโ€™re ready to go.ย Right-click in the content folder (where your projectโ€™s assets are) and search for โ€œmetahuman identity asset.โ€ Import it and rename the asset to your bustโ€™s name (this is for organizational purposes only). Next, Unreal will prompt you to create or log in to your Epic Games account. It does this because Metahuman Creator links directly with Unreal Engine and Quixel Bridge, as theyโ€™re all made by Epic Games. Once logged in, MetaHuman Creator will be able to see your facial meshes.ย Next, go to โ€˜Add components from meshโ€™ in the top toolbar and import your model. It should show up in the project view

The โ€œAdd components from meshโ€ menu is shown above.

Next, select the โ€œbodyโ€ on the left toolbar and choose a body type that makes sense for your 3D character. For Nicola, we chose a tall, thin male body. You can change the body type later in MetaHuman Creator if you desire.ย 

Use the left toolbar to choose a body type for your mesh.

Select โ€œNeutral poseโ€ for your body. New body poses will be available in Metahuman, but the neutral pose is perfect for our purposes.ย Next, weโ€™re adjusting this view position to aid Unrealโ€™s facial feature tracking markers calculations. First, click on your viewport camera to change the field of view(shown below with this symbol โ†“). Youโ€™ll want to set this to 15 degrees to give you a much flatter focus point for your facial features. Position your frame so the entire headโ€™s facial features fill up the view.

These arrows show where to select โ€œNeutral pose,โ€ your viewport camera, and where to adjust your cameraโ€™s field of view.

Once everything is lined up, click โ€œPromote frameโ€ in the top toolbar. At the bottom of your viewport, it should now read โ€œFrame zeroโ€.ย If youโ€™re struggling with this process, Unreal Engine released a great tutorial with more detail; you can follow it here.ย Back in the toolbar, clickย  โ€œTrack active frameโ€ to load default trackers for the facial features.ย 

Green tracking markers should now outline your meshโ€™s eyes, nose, mouth, and cheek lines. You can adjust these tracking points if they are dramatically incorrect by clicking and dragging them. This process is quite resource-intensive, so you might have to move slowly. In severe cases, itโ€™s simpler to repeat the process of choosing a frame and generating the markers.ย Once complete, you can also position a frame to accurately capture the shape of the ears if they are essential to your characterโ€™s visual story.ย When all tracking markers are placed, navigate to the top toolbar again and click โ€œMetaHuman identity solveโ€ to create a Metahuman mesh instantly.ย 

A generated Metahuman Mesh in Unreal Engine with active tracking markers.

If there are minor issues with your mesh, itโ€™s quick to fix them in MetaHuman Creator itself. For example, in the image above, the hair shape has resulted in a strange horn-like deformation on the forehead. Letโ€™s get that fixed!ย ย First, hit the โ€œMesh-to-metahumanโ€ button in the toolbar, and itโ€™ll begin setting up the creator on the backend. While thatโ€™s running, head over to your web browser and launch the latest version of Metahuman Creator.ย Check back to Unreal editor, and you should have a notification that your mesh is available in Quixel Bridge (Unrealโ€™s asset management software).ย Back in Metahuman Creator, you should be able to open up Quixel and find your Nicola Tesla mesh. Select it and click โ€œEnable editingโ€.ย 

vTip: We like to duplicate and unlock the mesh for editing, so the original remains unaffected.

To fix that forehead bump, look at the toolbar on the left. Here we can control every single part of our Metahuman in incredible detail.ย First, select โ€œCustom meshโ€ to open up a secondary sidebar. Here you should see a face thatโ€™s been broken down into sections. There are two sliders for each section โ€œoverall influenceโ€ and โ€œregional influence.โ€ These sliders indicate how much the mesh deviates from the typical metahuman shape. So to remove that strange forehead shape, just turn the influence down as you see fit, and it should disappear.

Weโ€™ve selected the top part of our Metahumanโ€™s skull in the image above.

You can also adjust any facial features using this method.ย Next, itโ€™s time to add some life in color to the mesh. A good starting point is to move to the โ€œskinโ€ tab to add a skin color and choose from the skin textures. We find the lips are often oversaturated, so weโ€™ll go in and reduce that color to be more natural.ย In this step, youโ€™ll want to start finalizing the look using all available metahuman options. Add new hairdos, change eye color, check out the additional styles of beards and otherwise play around until youโ€™re happy. There are new clothing options, fabric patterns, and other useful new features being added frequently, so keep checking back if youโ€™re looking for more new options.ย 

Tip: New facial animation loops and settings are available on the bottom of your viewport.ย 

Getting your character back into you Unreal Engine project is pretty straightforward. The character will be autosaved to Quixel every few seconds or on exit, so thereโ€™s no need to save anything.ย Go back to Unreal Engine, delete your old Nicola mesh and assets in the project, open Quixel, and navigate to the โ€œMy Metahumanโ€ folder. Click โ€œDownloadโ€ to download the assets locally. This might take a while as Metahumans tend to be pretty large. Next, find your asset in the local drive and import it into your project.ย 

How to prepare your own custom metahuman for animation

Now that your mesh is pretty much complete, there are just a few simple steps you need to take for it to work smoothly with motion capture tools.ย Close Unreal Engine and open up your computerโ€™s file explorer. Navigate to the project folder that was auto-generated by Unreal Engine. Go into YourProjectName โ†’ Content folder path.

Delete the current โ€œBoneMapsโ€ folder and drag and drop the โ€œBoneMapsโ€ folder provided for this tutorial. These new bone maps can be used for animating any Metahuman with Rokoko motion capture. Theyโ€™ll get you set up with a mocap rigging system and a foolproof ik rig.ย Next, add the provided โ€œMocapโ€ folder. This folder is to correct a minor bug within the MetaHuman motion capture workflow and may not be necessary for later releases.ย Open Unreal Engine back up.ย Open up the MetaHuman Blueprint in your project files, and youโ€™re ready to start.ย 

Setting up mesh-to-metahumans with Rokoko motion capture

Thereโ€™s no significant difference between the Rokoko Motion capture setup with characters generated via the metahuman plugin vs. created in Metahuman directly. Currently, some minor bugs exist, but theyโ€™re easy to work around. If you get stuck at any point with the animation features or setup process, feel free to reach out to Rokoko support or the community on our Discord.ย The tutorial below will walk you through the steps you need to take to enable body motion capture, hand motion capture, and facial motion capture using Rokokoโ€™s tools.ย 

Discover Rokokoโ€™s motion capture tools

Motion capture dramatically speeds up the animation pipeline while increasing quality and freedom of movement. Along with the mesh-to-metahuman plugin, creating lifelike game characters for your ue5 projects has never been easier. Take full advantage of MetaHumans and check out Rokokoโ€™s motion capture tools in more detail here โ†’

Frequently asked questions

No items found.

Book a personal demonstration

Schedule a free personal Zoom demo with our team, we'll show you how our mocap tools work and answer all your questions.

Product Specialists Francesco and Paulina host Zoom demos from the Copenhagen office