Skip to main content

How to integrate Avaturn into Three.JS app

You can use Avaturn as an avatar platform in your three.js app. Avaturn opens as an iframe and sends an avatar GLB to the three.js app, where the avatar is loaded via GLTFLoader.

DOWNLOAD

Please find an example project here: github.com/avaturn/avaturn-threejs-example.

Please check function initAvaturn and change demo domain with your own created at developer.avaturn.me.

function initAvaturn() {
...
// Replace it with your own subdomain
const subdomain = "demo";
const url = `https://${subdomain}.avaturn.dev`;
...
}