From b48db4cbb9d88da3c841a02c080f0a0bbcb73435 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 6 Jun 2019 19:58:38 +0200 Subject: updated faces --- client/splash/face/index.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'client/splash/face/index.js') diff --git a/client/splash/face/index.js b/client/splash/face/index.js index 46b7b847..9312cc52 100644 --- a/client/splash/face/index.js +++ b/client/splash/face/index.js @@ -4,12 +4,19 @@ import { faces, names } from './faces' import * as markers from './markers' import * as mesh from './mesh' +// import * as Editor from './editor' +import offsets from './all_faces_offsets' + +const faceOffsets = offsets() +const animating = true + export function init() { const name = choice(names) const face = faces[name] markers.build(face) - // mesh.load(name) - startAnimation() + if (animating) { + startAnimation() + } } export function startAnimation() { @@ -23,7 +30,7 @@ export function startAnimation() { obj: {}, duration: 0, finished: () => { - meshes = mesh.createFaceMeshes(geometry) + meshes = mesh.createFaceMeshes(geometry, faceOffsets[name]) meshes.wireframe.position.z -= 0.001 } }) -- cgit v1.2.3-70-g09d2