Skip to content

Instantly share code, notes, and snippets.

@jeromeetienne
Last active April 6, 2018 14:48
Show Gist options
  • Save jeromeetienne/c8de1017df384919a9214502158c3cf5 to your computer and use it in GitHub Desktop.
Save jeromeetienne/c8de1017df384919a9214502158c3cf5 to your computer and use it in GitHub Desktop.
<!-- Augmented Reality on the Web in 10 lines of html! https://github.com/jeromeetienne/ar.js -->
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>
<script src="../build/aframe-ar.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam;'>
<a-box position='0 0.5 0' material='opacity: 0.5;'></a-box>
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment