AR/assets/arTab/ar1.html

20 lines
770 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script>
<script src="https://cdn.rawgit.com/jeromeetienne/AR.js/1.6.0/aframe/build/aframe-ar.js"></script>
<script src="smooth_script.js"></script>
</head>
<body id="gamed" style="margin: 0px; overflow: hidden">
<a-scene embedded arjs='patternRatio:0.8;'>
<a-marker lerpsmooth id="marker" type="pattern" url="pattern-WebAR_QR.patt">
<a-box id="second-box-as-comparison" position="0 0 0" material="opacity: 0"></a-box>
</a-marker>
<a-entity id="smoothed-box" position="0 0 0" scale="2 2 2" gltf-model="cup_of_cappuccino/scene.gltf"></a-entity>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>