Skip to content

Instantly share code, notes, and snippets.

@JasonBernert
Created January 3, 2020 01:17
Show Gist options
  • Save JasonBernert/9b89e8e6bbe324cffabaed851c6976ee to your computer and use it in GitHub Desktop.
Save JasonBernert/9b89e8e6bbe324cffabaed851c6976ee to your computer and use it in GitHub Desktop.
Ar.js Demo
<script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/1.7.5/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='detectionMode: mono_and_matrix; matrixCodeType: 3x3;'>
<a-marker type='barcode' value='12'>
<a-box position='0 0.5 0' material='color: #0EEE56;'></a-box>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment