Avatar SDK Unity Cloud plugin  3.0.1
Realistic avatar generation toolset for Unity3D
Scene #03: LOD Sample

This scene demonstrates how to get various LOD (Level Of Details) for the generated avatar's mesh and blendshapes.

ANIMATED FACE Pipeline
Nine LODs are available for the avatar generated by the ANIMATED FACE pipeline.

  • LOD0: corresponds to the base head mesh, contains 13043 vertices and 24479 triangles.
  • LOD1: 9898 vertices, 18674 triangles.
  • LOD2: 8122 vertices, 15122 triangles.
  • LOD3: 6107 vertices, 11128 triangles.
  • LOD4: 5363 vertices, 9772 triangles.
  • LOD5: 3859 vertices, 6844 triangles.
  • LOD6: 3062 vertices, 5430 triangles.
  • LOD7: 2342 vertices, 3996 triangles.
  • LOD8: 1425 vertices, 2680 triangles. The structure of the head is the same as in LOD7, but without teeth.

HEAD 1.2 pipeline
Eight LODs are available for the avatar generated by the HEAD 1.2 pipeline.

  • LOD0: 26002 vertices, 51005 triangles.
  • LOD1: 15380 vertices, 30000 triangles.
  • LOD2: 7880 vertices, 15000 triangles.
  • LOD3: 5380 vertices, 10000 triangles.
  • LOD4: 4378 vertices, 8000 triangles.
  • LOD5: 3878 vertices, 7000 triangles.
  • LOD6: 3306 vertices, 6000 triangles.
  • LOD7: 2806 vertices, 5000 triangles.

HEAD 2.0 pipeline ("head/mobile" subtype)
Eight LODs are available for the avatar:

  • LOD0: corresponds to the base head mesh, contains 11894 vertices and 23404 triangles.
  • LOD1: 9969 vertices, 19054 triangles.
  • LOD2: 8732 vertices, 16860 triangles.
  • LOD3: 5713 vertices, 11007 triangles.
  • LOD4: 4953 vertices, 9497 triangles.
  • LOD5: 4259 vertices, 7889 triangles.
  • LOD6: 3789 vertices, 6937 triangles.
  • LOD7: 2034 vertices, 3926 triangles.

HEAD 2.0 pipeline ("bust/mobile" subtype)
Eight LODs are available for the avatar:

  • LOD0: corresponds to the base head mesh, contains 31K vertices and 57K triangles.
  • LOD1: 22K vertices, 40K triangles.
  • LOD2: 17K vertices, 30K triangles.
  • LOD3: 12K vertices, 20K triangles.
  • LOD4: 6K vertices, 10K triangles.
  • LOD5: 5K vertices, 8K triangles.
  • LOD6: 4.5K vertices, 7K triangles.
  • LOD7: 2.5K vertices, 4K triangles.

There is a set of options specific for HEAD 2.0 pipeline (both subtypes: head/mobile and bust/mobile):

  • A number of faces in the generated haircut. Initially, we generate a haircut. If the haircut's polygons count is more than the requested value, the number of polygons will be downscaled. Otherwise, the polygons number remains the same. The default value is 5000. We don't recommend setting polygons number less than 1000.
  • Size of the resulting model's texture. Upper bound is 4096 x 4096. Usage of values greater than 2048 x 2048 seems to be not reasonable.
  • Size of generated haircut's texture. Upper bound is 4096 x 4096. Usage of values greater than 1024 x 1024 seems to be not reasonable.

User interface and the scene

There are buttons to generate avatar: from the predefined photo, from the photo stored on the filesystem or take a photo by a web camera or camera on a mobile device.

Drop-down list to choose pipeline type.

The panel in the bottom right corner contains toggles to switch between different levels of details.

There are controls to apply blendshapes for the avatar at the bottom of the scene.

Also, there is a possibility to export avatar with the given LOD to OBJ or FBX formats.

Implementation

See the LODSample.cs for implementation details.

See also FAQ and the getting started instructions on the main page: Main Page.

Location: Assets/itseez3d/avatar_sdk/samples_cloud/03_lod_sample_cloud/scenes/03_lod_sample_cloud.unity.