Skip to main content

External Body Mesh Creation

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

This guide explains how to prepare meshes to be used as an External Mesh. Automatic fitting for external meshes to the base mesh happens based on vertex proximity or UV coordinate matching. You can edit your external mesh in any 3D tool (for example, Blender, Maya or Cinema 4D) to make sure it fits correctly. To prepare a mesh for use as an external mesh with proximity matching you only need to align it with a reference mesh in the reference pose; no rigging is required.

You can download the reference models here and import the ones you need into your 3D editor.

Two rest poses are available in the reference model pack and for use as an external mesh (T-pose, and A-pose). Modeling your external mesh to match the A-pose usually results in better deformation since the fitting is configured based on the vertex proximity. In addition, an A-pose ensures reduced stretching of the clothes under arms and better fitting on the legs.

Preparing the mesh

Import the reference Model FBX file to the 3D editor of your choice:

The reference body model in A-pose and T-pose imported into Blender

Then create a 3D model or alter an existing 3D model to fit and align to the reference model.

A garment modeled around the A-pose reference body in Blender

For best results using vertex proximity matching, make sure that the mesh you are fitting to the body aligns well to the reference body meshes. Ideally the mesh should fit around the base mesh and not intersect it at any point. Clothes that have to be worn together should also be modeled so they don't intersect. For example, a hoodie should fit loosely around a t-shirt. For more precise fittings for items such as gloves, use UV matching.

You can add blendshapes to an external mesh. For example, you could use them to open or close a jacket or to adjust the length of a sleeve.

Complete these additional steps before exporting an external mesh to Lens Studio to minimize further setup.

If you're using Proximity matching, reset all transforms on the mesh, so its:

  • Position is (0, 0, 0)
  • Rotation is (0, 0, 0)
  • Scale is (1, 1, 1)

To reset all transforms in Blender, press Ctrl + A, then select All Transforms.

Blender's Apply menu with All Transforms highlighted

To reset all transforms in Maya, select the 3D object, select Modify, then select Freeze Transformations.

Maya's Modify menu with Freeze Transformations highlighted

To reset the transform in Cinema 4D, select your object in the Object Manager, then in the Attribute Manager, select the Coord. tab and select Freeze All.

Before resetting or freezing transforms, make sure that the object's pivot is at the same point as the reference body's pivot. As you can see in the clip below, the pivot of the object is at the same position (0,0,0) as the pivot of the reference body.

Exporting The Mesh

The best way to bring an external mesh into Lens Studio is to export it as an FBX file. See the export settings below and refer to the full guide on exporting for Lens Studio for more information.

Blender

With the object you want to use as an external mesh selected, select File > Export > FBX.

Recommended FBX Settings:

  • Scale: 1
  • Apply Transform
  • Forward: -Z Forward
  • Up: Y Up

Blender's FBX export settings

Maya

With the object you want to use as an external mesh selected, select File > Export Selection.

Recommended FBX Settings:

Maya's FBX export settings

Cinema 4D

Recommended FBX Settings:

Cinema 4D's FBX export settings