forked from agarwalbharat/AR-using-JS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew.html
25 lines (21 loc) · 1.04 KB
/
new.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
<!doctype HTML>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
</head>
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
<script src="https://rawgit.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene id="thescene" cursor="rayOrigin: mouse" embedded arjs="sourceType: webcam; trackingMethod: best;debugUIEnabled: false;">
<a-assets>
<a-asset-item id="mega" src="scene.glb"></a-asset-item>
</a-assets>
<a-marker preset='custom' type='pattern' url='pattern-marker.patt'>
<a-entity gltf-model="#mega" scale="0.1 0.1 0.1" position="0 0 0" rotation="0 0 0" object-n id="castle"></a-entity>
</a-marker>
<a-entity camera>
</a-entity>
</a-scene>
</body>
</html>