Introduction
The kiosk renders the avatar from a GLB model in the browser.
The built-in avatar
The default avatar is Pip, a small robot that the kiosk ships at /avatars/pip.glb.
New applications get it, and any application whose avatar model fails to load falls back
to it. Pip is generated by code in
sermas-avatar-pip, which also holds
its avatar configuration.
Your own model
A custom model works when it follows these conventions:
- Face: the ARKit blend shapes (
jawOpen,mouthSmile_L,eyeBlink_L, ...) on the face mesh; lip sync and expressions drive them. - Skeleton: the bone names of the Ready Player Me full-body rig (
Hips,Spine,Head,LeftEye,RightEye, ...), so that the kiosk's animations fit. A model's own animation clips are used for gestures when it has them (see Animations). - Format: GLB, and light (well under 50 MB) so that it loads quickly on phones.
Ready Player Me no longer serves avatars, so models created there must be downloaded copies. 3Dify is another way to create a model.
A quick way to inspect a model: https://gltf-viewer.donmccurdy.com/
Load the model
Put the GLB in a folder under repository/avatars, with a .yaml file describing it
(see repository documentation):
├── avatars
│ ├── marco
│ │ ├── avatar.glb
│ │ └── avatar.glb.yaml
Then save the application again (see application creation).