Avatar SDK Offline Unity plugin
1.9.1
animted_face and head_1.2 pipelines
|
This scene showcases the more advanced usage of the Avatar SDK API.
UI is similar to a previous scene: use upload buttons to create avatars from different photos, use toggle switches to select the pipeline type.
Once the photo is uploaded, the avatar isn't opened right away, but rather added to a gallery with a small thumbnail image. In the Cloud SDK the list of avatars is downloaded from the server, in Offline SDK the local filesystem is used.
Show button will open an Avatar viewer which is implemented as a separate scene. Once opened, the Avatar Viewer will download the mesh and the list of available resources for this avatar from the server (or from disk in case of Offline SDK). Controls in avatar viewer allow you to change haircut or its color, playback blendshape animations, change rendering options and export the avatar to a prefab, .obj or .fbx format.
Keep in mind that in this sample the avatars are always created with a default set of parameters. To learn how to create an avatar with the custom set of parameters take a look at scene parameters_sample
.
The key code components for this scene are:
AvatarProvider
used to generate avatars, just like in GettingStarted scene.GallerySample
and derived GallerySampleCloud
and GallerySampleOffline
demonstrate how to create a very basic avatar gallery using the Avatar SDK APIAvatarViewer
class which contains all functionality to display the avatar in a scene.All classes mentioned are implemented in open-source C#, please take a look at the source code and the comments for further instructions.
See also FAQ and the getting started instructions on the main page: Main Page.