-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path04_ar.html
executable file
·25 lines (20 loc) · 1.11 KB
/
04_ar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!-- include A-Frame obviously -->
<script src="https://aframe.io/releases/1.0.0/aframe.min.js"></script>
<!-- include ar.js for A-Frame -->
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-text-geometry-component.min.js"></script>
<script src="./components/backButton.js"></script>
<script src="./components/goto.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs>
<a-assets>
<a-asset-item id="pilot-man" src="./models/scene.gltf"></a-asset-item>
</a-assets>
<a-entity id="backButton" position="0 -2 -2" back-button></a-entity>
<!-- <a-box position='0 0.5 0' material='opacity: 0.5;'></a-box> -->
<a-text value="Hello, World!"></a-text>
<a-entity gltf-model="#pilot-man" scale=".001 .001 .001" position="0 0 -3" ></a-entity>
<a-entity position="-10 0.2 -6" material="color: red" scale=".1 .1 .1" text-geometry="value: G" raycaster="objects: .collidable"></a-entity>
<a-marker-camera preset='hiro'></a-marker-camera>
</a-scene>
</body>