-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (21 loc) · 1.02 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<!-- we import arjs version without NFT but with marker + location based support -->
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<body style="margin : 0px; overflow: hidden;">
<!-- <a-scene embedded arjs> -->
<a-scene embedded arjs='sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280;
displayHeight: 960;'>
<a-marker preset="hiro">
<!-- <a-entity position="0 0 0" scale="0.05 0.05 0.05"
gltf-model="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf">
</a-entity> -->
<a-entity position="0 0 0" scale="0.05 0.05 0.05"
gltf-model="https://dsuppo.github.io/AR_test/simpleCube.gltf">
</a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>