-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (58 loc) · 2.17 KB
/
index.html
File metadata and controls
73 lines (58 loc) · 2.17 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<script src='https://cdn.jsdelivr.net/gh/aframevr/aframe@1c2407b26c61958baa93967b5412487cd94b290b/dist/aframe-master.min.js'></script>
<script src='https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js'></script>
<script src="https://raw.githack.com/fcor/arjs-gestures/master/dist/gestures.js"></script>
<style> /*loading screen for when fset files are loading as everything is done client-side*/
.arjs-loader {
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.8);
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
}
.arjs-loader div {
text-align: center;
font-size: 1.25em;
color: white;
}
</style>
<body style='margin : 0px; overflow: hidden;'>
<div class="arjs-loader">
<div>Loading. Please wait...</div>
</div>
<a-scene
vr-mode-ui='enabled: false;'
renderer="logarithmicDepthBuffer: true;"
gesture-detector
embedded arjs='trackingMethod: best; sourceType: webcam; debugUIEnabled: false; detectionMode: mono_and_matrix; matrixCodeType: 3x3;'
>
<a-nft
type='nft'
smooth="true" smootCount="10" smoothTolerance="0.01" smoothThreshold="5"
url="https://arjs-cors-proxy.herokuapp.com/https://raw.githack.com/SakDev/ar-js/master/assets/image/one"
>
<a-entity
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'
scale="5 5 5"
position="0 0 0"
class="clickable"
gesture-handler
>
</a-entity>
<a-text
id="im1"
value="HELLO WORLD"
color="red"
rotation="-90 0 0"
scale="40 40 40"
text="anchor: center; zOffset: -2; wrapCount: 15; align: center; height: 50; lineHeight: 50; xOffset: 3"
position="">
</a-text>
</a-nft>
<a-entity camera></a-entity>
</a-scene>
</body>