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: Sep 4, 2019 1:21 PM
Modified: Sep 4, 2019 1:21 PM
Views: 3
Tags: no tags
  1. <a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3; trackingMethod: best' >
  2.     <a-plane position='0 0 0' id='plane-buttons' rotation='-90 0 0' material='opacity: 1' color='red' width='2' height='2' metalness='0.5'></a-plane>
  3.     <a-marker markerhandler id='animated-marker' emitevents="true" type='pattern' preset='hiro' value='6'>
  4.         <a-entity id='animated-model' emitevents="true" cursor="rayOrigin: mouse">
  5.             <a-plane position='0 1 -1' id='plane-views' color='yellow' rotation='-0.1 0 0' material='opacity: 1' width='2' height='2' metalness='0.5'></a-plane>
  6.         </a-entity>
  7.         <?php
  8.        for($i = 0; $i < $NUM_TOPICS; $i++)
  9.        {
  10.            switch ($config->ViewTopics->Topic[$i]->type)
  11.             {
  12.                 case $NAME_TEXT : //Darstellung eines Textelements
  13.                     echo "<a-entity id='viewTopic" . $i . "' position='0 " . ($MAX_HIGHT_VIEWTOPICS - ($i * $ABSTAND_VIEWTOPICS)) . " -0.9' rotation='0.1 0 0' "
  14.                    . "text='color: red; align: center; value: " . $config->ViewTopics->Topic[$i]->name . ": ; width: 2'></a-entity>\r\n\t\t";
  15.                     break;
  16.                 case $NAME_BALKEN : // Darstellung eines Fortschrittsbalkens
  17.                     echo "<a-entity>\r\n\t<a-box id='viewTopic" . $i . "' width='1' height='0.2' depth='0.2' position='0 " . ($MAX_HIGHT_VIEWTOPICS - ($i * $ABSTAND_VIEWTOPICS)) . " -0.9' "
  18.                    . "color='orange'</a-box></a-entity>\r\n\t";
  19.                     echo "<a-entity id='textViewTopic" . $i . "' position='0 " . ($MAX_HIGHT_VIEWTOPICS - ($i * $ABSTAND_VIEWTOPICS)) . " -0.79' rotation='0.1 0 0' "
  20.                    . "text='color: grey; align: center; value: " . $config->ViewTopics->Topic[$i]->name . " (Von " . $config->ViewTopics->Topic[$i]->min . " bis " . $config->ViewTopics->Topic[$i]->max . ") ; width: 2'></a-entity>\r\n\t\t";
  21.                     break;                      
  22.             }
  23.         }
  24.         ?>
  25.         <a-plane position='0 0 0' id='plane-buttons' rotation='-90 0 0' material='opacity: 1' color='red' width='2' height='2' metalness='0.5'></a-plane>
  26.         <a-entity>
  27.             <a-box id='btnTopic1' width='2' height='0.2' depth='0.3' position='0 0.1 -0.8' color='green'</a-box>
  28.         </a-entity>
  29.         <a-entity>
  30.             <a-box id='btnTopic2' width='2' height='0.2' depth='0.3' position='0 0.1 -0.2' color='blue'</a-box>
  31.         </a-entity>
  32.         <a-entity>
  33.             <a-box id='btnTopic3' width='2' height='0.2' depth='0.3' position='0 0.1 0.3' color='orange'</a-box>
  34.         </a-entity>
  35.         <a-entity>
  36.             <a-box id='btnTopic4' width='2' height='0.2' depth='0.3' position='0 0.1 0.8' color='purple'</a-box>
  37.         </a-entity>
  38.         <a-entity id="controllTopic1" position="0 0.3 -0.8" rotation="-90 0 0" text="color: black; align: center; value: <?php echo $config->ControllTopics->Topic[0]->value . ' to ' . $config->ControllTopics->Topic[0]->name ?>: ; width: 2"></a-entity>
  39.         <a-entity id="controllTopic2" position="0 0.3 -0.2" rotation="-90 0 0" text="color: black; align: center; value: <?php echo $config->ControllTopics->Topic[1]->value . ' to ' . $config->ControllTopics->Topic[1]->name ?>: ; width: 2"></a-entity>
  40.         <a-entity id="controllTopic3" position="0 0.3 0.3" rotation="-90 0 0" text="color: black; align: center; value: <?php echo $config->ControllTopics->Topic[2]->value . ' to ' . $config->ControllTopics->Topic[2]->name ?>: ; width: 2"></a-entity>
  41.         <a-entity id="controllTopic4" position="0 0.3 0.8" rotation="-90 0 0" text="color: black; align: center; value: <?php echo $config->ControllTopics->Topic[3]->value . ' to ' . $config->ControllTopics->Topic[3]->name ?>: ; width: 2"></a-entity>
  42.     </a-marker>
  43.     <a-entity camera></a-entity>
  44. </a-scene>