<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3; trackingMethod: best' >
<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>
<a-marker markerhandler id='animated-marker' emitevents="true" type='pattern' preset='hiro' value='6'>
<a-entity id='animated-model' emitevents="true" cursor="rayOrigin: mouse">
<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>
</a-entity>
<?php
for($i = 0; $i < $NUM_TOPICS; $i++)
{
switch ($config->ViewTopics->Topic[$i]->type)
{
case $NAME_TEXT : //Darstellung eines Textelements
echo "<a-entity id='viewTopic" . $i . "' position='0 " . ($MAX_HIGHT_VIEWTOPICS - ($i * $ABSTAND_VIEWTOPICS)) . " -0.9' rotation='0.1 0 0' "
. "text='color: red; align: center; value: " . $config->ViewTopics->Topic[$i]->name . ": ; width: 2'></a-entity>\r\n\t\t";
break;
case $NAME_BALKEN : // Darstellung eines Fortschrittsbalkens
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' "
. "color='orange'</a-box></a-entity>\r\n\t";
echo "<a-entity id='textViewTopic" . $i . "' position='0 " . ($MAX_HIGHT_VIEWTOPICS - ($i * $ABSTAND_VIEWTOPICS)) . " -0.79' rotation='0.1 0 0' "
. "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";
break;
}
}
?>
<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>
<a-entity>
<a-box id='btnTopic1' width='2' height='0.2' depth='0.3' position='0 0.1 -0.8' color='green'</a-box>
</a-entity>
<a-entity>
<a-box id='btnTopic2' width='2' height='0.2' depth='0.3' position='0 0.1 -0.2' color='blue'</a-box>
</a-entity>
<a-entity>
<a-box id='btnTopic3' width='2' height='0.2' depth='0.3' position='0 0.1 0.3' color='orange'</a-box>
</a-entity>
<a-entity>
<a-box id='btnTopic4' width='2' height='0.2' depth='0.3' position='0 0.1 0.8' color='purple'</a-box>
</a-entity>
<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>
<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>
<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>
<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>
</a-marker>
<a-entity camera></a-entity>
</a-scene>