A crowd that watches you
Twenty-four faces in one three.js scene, in every skin and style, all following your pointer. Make them all smile, startle them, start a Mexican wave, or have the whole crowd talk at once.
Loading...
Every face is a FaceMesh in the same scene, sharing one WebGL context. gazeAt() takes a point in the world, so a crowd can follow anything.
for (const skin of skins) {
const face = new FaceMesh({ skin, size: 0.16 });
attachFace(head, face);
face.gazeAt(pointer); // a THREE.Vector3 you move
}