Inutile de retenir tout ça, c'est la suite qui est intéressante
Dans <body>: on crée un canvas pour dessiner la vidéo,
on lance Jeeliz grâce onload="main()",
et on indique quel objet bouger grâce à id="jeelizFaceFilterFollow", seul nouveau code dans notre scène!
essayez de faire bouger la sphère également avec la tête
<!-- Run 'main()' AR demo code when page loads --><bodyonload="main()"style="color: white"><!-- Create a canvas to draw our augmented video --><canvaswidth="600"height="600"id="jeeFaceFilterCanvas"></canvas><!--
Our A-Frame scene!
NOTE: Thanks to the new id "jeelizFaceFilterFollow" the cube will follow your face!
--><a-sceneembedded><a-boxid="jeelizFaceFilterFollow"position="0 0 0"rotation="0 0 0"width="1"height="1"depth="1"color="#4CC3D9"></a-box><a-sphereposition="0 1.25 -5"radius="0.5"color="#EF2D5E"></a-sphere><a-cylinderposition="1 0.75 -3"radius="0.2"height="0.5"color="#FFC65D"></a-cylinder><a-planeposition="0 0 -4"rotation="-90 0 0"width="4"height="4"color="#7BC8A4"></a-plane><a-skycolor="#ECECEC"></a-sky></a-scene></body>