-
Notifications
You must be signed in to change notification settings - Fork 0
/
ar_js_get_points.html
44 lines (39 loc) · 1.57 KB
/
ar_js_get_points.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
<body style="margin : 0px; overflow: hidden;">
<a-scene
vr-mode-ui="enabled: false;"
renderer="logarithmicDepthBuffer: true; precision: medium;"
loading-screen="dotsColor: red; backgroundColor: black"
embedded
arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;">
<a-assets>
<img id="my-image" src="https://sadji0.github.io/TestAR/wheel.png">
</a-assets>
<a-nft
type="nft"
url="https://sadji0.github.io/TestAR/triggers_pizza/img_less"
smooth="true"
smoothCount="10"
smoothTolerance="0.01"
smoothThreshold="5"
>
<a-sphere position="0 0 0" radius="0.5" color="#51ef2d"></a-sphere>
<a-image position="0 0 0" rotation="90 0 0" scale="2 2 2"
src="#my-image"
animation="property: rotation; to: 90 3600 0; dur: 10000; easing: easeInOutExpo; loop: false"
></a-image>
</a-nft>
<a-entity camera></a-entity>
</a-scene>
</body>
<script>
// alert("start loading");
window.addEventListener("arjs-nft-loaded", (event) => {
// Hide loading overlay
alert("loaded");
});
</script>
</html>