Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: HTML
Posted by: AR Robocup
Added: Aug 31, 2019 5:36 PM
Views: 10
Tags: no tags
  1. <!DOCTYPE html>
  2. <!--
  3. Yannick Bröhl
  4. -->
  5.     <head>
  6.         <title>Erste Szene</title>
  7.         <meta charset="UTF-8">
  8.         <script src="data/ar/aframe.min.js"></script>
  9.         <script src="data/ar/aframe-ar.min.js"></script>
  10.         <script src="data/ar/aframe-extras.loaders.min.js"></script>
  11.     </head>
  12.     <body>
  13.     <a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3; trackingMethod: best'>
  14.         <a-marker type="pattern" preset="hiro">
  15.             <a-plane position="0 0 0" width="1" height="1" rotation="-90 0 0" color="green" opacity="0.5"></a-plane>
  16.             <a-box position="0 0.25 0" width="0.5" height="0.5" depth="0.5" color="red"></a-box>
  17.         </a-marker>
  18.         <a-entity camera></a-entity>
  19.     </a-scene>
  20.  
  21.     </body>
  22. </html>