-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcamera.html
More file actions
22 lines (18 loc) · 754 Bytes
/
camera.html
File metadata and controls
22 lines (18 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<script src="https://aframe.io/releases/1.0.4/aframe.min.js"></script>
<script src="https://jeromeetienne.github.io/AR.js/aframe/build/aframe-ar.js"></script>
<link rel="stylesheet" href="css/styles.css">
</head>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs='sourceType: webcam;' gltf-model="dracoDecoderPath: model/draco/;">
<a-marker preset='hiro'>
<a-entity scale="0.2, 0.2, 0.2" position="0,0,0" gltf-model="url(model/glass-bong.glb)"></a-entity>
</a-marker>
<a-entity camera>
</a-entity>
</a-scene>
</body>
</html>