forked from Chrstjan/A-Frame-Lars-Ar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (29 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AR Face by Peter Olesen</title>
<script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
</head>
<body>
<!--x, y, z -->
<a-scene>
<a-marker preset="hiro">
<!-- Head -->
<a-sphere position="0 1.5 -2" radius="1" color="#FFDBAC"></a-sphere>
<!-- Right eye -->
<a-sphere position="0.2 1.7 -1" radius="0.1"></a-sphere>
<a-sphere position="0.185 1.67 -0.9" radius="0.02" color="black"></a-sphere>
<!-- Left eye -->
<a-sphere position="-0.2 1.7 -1" radius="0.1"></a-sphere>
<a-sphere position="-0.185 1.67 -0.9" radius="0.02" color="black"></a-sphere>
<!-- Mouth -->
<a-cylinder position="0 1.3 -1" color="crimson" height="0.1" radius="0.15"></a-cylinder>
</a-marker>
<!-- Camera and light -->
<a-entity camera></a-entity>
<a-light type="ambient" intensity="0.5"></a-light>
</a-scene>
</body>
</html>