UNPKG

aframe-motion-capture-components

Version:
55 lines (53 loc) 2.9 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>A-Frame Motion Capture Components Development</title> <meta name="description" content="Motion Capture Components Development – A-Frame"> <script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script> <script src="js/build.js"></script> <script src="js/components/aabb-collider.js"></script> <script src="js/components/grab.js"></script> <script src="js/components/ground.js"></script> <script src="js/components/line.js"></script> <script src="js/components/ui-raycaster.js"></script> <script src="js/shaders/skyGradient.js"></script> <link rel="stylesheet" href="style.css"> </head> <body> <div class="container"> <div class="sidebar"> <h1>Development</h1> <p>By recording user interactions we can iterate over the scene behavior without having to have a headset connected. You can open developer tools and modify the color of the hover highligh while the scene is running (search for the a-mixin cube-hovered tha defines the highlight color)</p> </div> <a-scene fog="color: #bc483e; near: 0; far: 65;" avatar-replayer="src: assets/dev-recording.json; loop: true; spectatorMode: false" embedded> <a-assets> <a-mixin id="cube" geometry="primitive: box; height: 0.30; width: 0.30; depth: 0.30" material="color: #EF2D5E;"></a-mixin> <!-- Modify the color of this mixin to customize the cube highlight --> <a-mixin id="cube-hovered" material="color: #F2E646;"></a-mixin> </a-assets> <!-- Hands --> <a-entity id="left" vive-controls="hand: left" grab line="end: 0 0 -5" ui-raycaster="objects: .cube"></a-entity> <a-entity id="right" vive-controls="hand: right" grab line="end: 0 0 -5" ui-raycaster="objects: .cube"></a-entity> <!-- A-Frame cubes --> <a-entity position="0 0 -1.0"> <a-entity class="cube" mixin="cube" position="0.5 1.5 0"></a-entity> <a-entity class="cube" mixin="cube" position="0 1.5 0"></a-entity> <a-entity class="cube" mixin="cube" position="-0.5 1.5 0"></a-entity> </a-entity> <!-- Environment --> <a-entity id="sky" geometry="primitive: sphere; radius: 65;" material="shader: skyGradient; colorTop: #353449; colorBottom: #BC483E; side: back"></a-entity> <a-entity ground></a-entity> <a-entity light="type: point; color: #f4f4f4; intensity: 0.2; distance: 0" position="8 10 18"></a-entity> <a-entity light="type: point; color: #f4f4f4; intensity: 0.6; distance: 0" position="-8 10 -18"></a-entity> <a-entity light="type: ambient; color: #f4f4f4; intensity: 0.4;" position="-8 10 -18"></a-entity> </a-scene> </div> </body> </html>