Embed a 3D avatar on a website
Put a character next to a welcome message or on a profile page. Visitors can turn the head and play a wave. A plain HTML page can run the whole interaction.
Read the guideServe the player and its assets together
Unzip Clayfaces 0.1.2 and put the Web and WebAssets folders beside each other in your site’s static files. Web contains the JavaScript player. Its modules resolve the neighboring WebAssets directory to find the rig, textures, appearance catalog and performance tracks. Keep both folders from the same release.
For a local test, put index.html next to those folders, run python3 -m http.server 8000 from that directory and open http://localhost:8000. Serving the page over HTTP lets the browser import the modules and fetch their data.
Check the deployed page
Drag the head, double-click to face forward, and press Wave twice. A first gesture can trigger additional requests for its hand and effect assets. Open the Network panel if the head appears but the gesture fails. Look for the first missing asset, including any filename case differences.
If nothing appears, check the container dimensions, WebGL 2 availability and the response for Web/character.js. A hosting rule that serves your homepage for every unknown URL can return HTML for a module or model packet. When embedding the player in a client-side route, call dispose() when that route leaves the screen.