This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--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模型--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "happybirthday", | |
"version": "1.0.0", | |
"description": "This will load any static html site", | |
"scripts": { | |
"start": "harp server --port $PORT" | |
}, | |
"dependencies": { | |
"harp": "*" | |
} |