-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (34 loc) · 2.15 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<title>Interactive AR Menu</title>
</head>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'>
<!-- Define an AR marker -->
<a-marker preset="hiro">
<!-- Add interactive 3D text as menu items -->
<!-- <a-text value="Option 1" position="-1 0.5 0" rotation="-90 0 0" color="red" id="option1"
event-set__enter="_event: mouseenter; color: yellow" event-set__leave="_event: mouseleave; color: red"
onclick="alert('Option 1 Selected');"></a-text>
<a-text value="Option 2" position="0 0.5 0" rotation="-90 0 0" color="green" id="option2"
event-set__enter="_event: mouseenter; color: yellow" event-set__leave="_event: mouseleave; color: green"
onclick="alert('Option 2 Selected');"></a-text>
<a-text value="Option 3" position="1 0.5 0" rotation="-90 0 0" color="blue" id="option3"
event-set__enter="_event: mouseenter; color: yellow" event-set__leave="_event: mouseleave; color: blue"
onclick="alert('Option 3 Selected');"></a-text> -->
<a-entity gltf-model="url(./assets/soup.glb)" radius='0.20' radius-tubular='0.02' position='0 0 0'
material='opacity: 0; side: double;color:red;' scale="0.8 0.8 0.8"
animation="property: rotation; to:0 360 0; dur: 10000; easing: linear; loop: true"></a-entity>
<!--
<a-entity gltf-model="url(https://raw.githubusercontent.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf)" radius='0.26' radius-tubular='0.05' position='0 0.5 0'
material='opacity: 0; side: double;color:red;' scale="0.1 0.1 0.1"
animation="property: rotation; to:0 360 0; dur: 10000; easing: linear; loop: true"></a-entity> -->
</a-marker>
<!-- Camera setup -->
<a-entity camera></a-entity>
</a-scene>
</body>
</html>