Skip to content

Instantly share code, notes, and snippets.

@superj80820
Last active April 6, 2019 10:48
Show Gist options
  • Save superj80820/134c0cf17c90962bca97c3d2366365df to your computer and use it in GitHub Desktop.
Save superj80820/134c0cf17c90962bca97c3d2366365df to your computer and use it in GitHub Desktop.
ar-card
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
<script src="https://rawgit.com/jeromeetienne/ar.js/master/aframe/build/aframe-ar.js"></script>
<script>THREEx.ArToolkitContext.baseURL = 'https://rawgit.com/jeromeetienne/ar.js/master/three.js/'</script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'>
<a-marker type='pattern' url='res/pattern-marker.patt'>
<a-entity position='-3 2 0' text="width: 5; value:I am Psyduck. We are pokemon. We love you"></a-entity>
<a-entity position='0 0 0' gltf-model="url(res/scene.gltf)"></a-entity>
</a-marker>
</a-scene>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment