Skip to content

Commit

Permalink
AR Marker Test (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeskydev authored Feb 12, 2024
1 parent 36e5513 commit 7f5648d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.1.4/dist/mindar-image.prod.js"></script>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/hiukim/mind-ar-js@1.1.4/dist/mindar-image-aframe.prod.js"></script>
</head>
<body>
<a-scene mindar-image="imageTargetSrc: ./assets/targets.mind; uiLoading:no; uiScanning:no" color-space="gamma" renderer="physicallyCorrectLights" vr-mode-ui="enabled: false" device-orientation-permission-ui="enabled: false">
<a-assets>
<img id="card" src="./assets/qr-code.png" />
<a-asset-item id="oblogo" src="./assets/OpenBrushLogo.glb"></a-asset-item>
</a-assets>

<a-camera position="0 0 0" look-controls="enabled: false"></a-camera>
<a-entity mindar-image-target="targetIndex: 0">
<a-gltf-model rotation="0 0 0" position="0 0 0.1" scale="0.05 0.05 0.05" src="#oblogo" animation="property: position; to: 0 0 0.2; dur: 1000; easing: easeInOutQuad; loop: true; dir: alternate">
</a-entity>
</a-scene>
</body>
</html>
Binary file added assets/OpenBrushLogo.glb
Binary file not shown.
Binary file added assets/qr-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/targets.mind
Binary file not shown.

0 comments on commit 7f5648d

Please sign in to comment.