Skip to content

Instantly share code, notes, and snippets.

Avatar

Dorna Wu vneverz

  • Taipei
View GitHub Profile
View gist:19f4d183d504197cd009aff558727c9e
<!--index.html-->
<!doctype HTML>
<html>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.7.7/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'>
<a-marker preset='custom' type='pattern' url='res/pattern-qr-code.patt'>
<a-entity text="width: 5; value:Happy Birthday To You" position='1.4 1.8 0'></a-entity> <!--加上文字-->
<a-entity id='gltf' gltf-model="url(res/scene.gltf)" position='0 0.5 0' scale='0.2 0.2 0.2'></a-entity> <!--加上3D模型-->
View gist:cee31b6d7334c4269adfead3d229fa5a
{
"name": "happybirthday",
"version": "1.0.0",
"description": "This will load any static html site",
"scripts": {
"start": "harp server --port $PORT"
},
"dependencies": {
"harp": "*"
}
You can’t perform that action at this time.