-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create base templates to test mind ar and ar-js
- Loading branch information
1 parent
65c765b
commit 0420aa9
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script> | ||
<!-- we import arjs version without NFT but with marker + location based support --> | ||
<script src="https://raw.githack.com/AR-js-org/AR.js/3.4.7/aframe/build/aframe-ar.js"></script> | ||
<body style="margin : 0px; overflow: hidden;"> | ||
<a-scene embedded arjs> | ||
<a-assets> | ||
<video id="gif-video" src="http://localhost:9000/jandig-cdn/media/public/objects/temaki.webm" autoplay loop="true" crossorigin="anonymous"></video> | ||
</a-assets> | ||
<a-marker type='pattern' url='http://localhost:9000/jandig-cdn/media/public/patts/IMG_20250209_173553.jpg.patt'> | ||
<a-plane | ||
position="0 0 0" | ||
rotation="-90 0 0" | ||
width="1" | ||
height="1" | ||
material="src: #gif-video; transparent: true;" | ||
></a-plane> | ||
<a-entity | ||
position="0 0 0" | ||
scale="0.05 0.05 0.05" | ||
gltf-model="https://raw.githack.com/AR-js-org/AR.js/master/aframe/examples/image-tracking/nft/trex/scene.gltf" | ||
></a-entity> | ||
</a-marker> | ||
<a-entity camera></a-entity> | ||
</a-scene> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
{# <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mindar-image.prod.js"></script> #} | ||
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mindar-image-aframe.prod.js"></script> | ||
</head> | ||
<body> | ||
<a-scene mindar-image="imageTargetSrc: http://localhost:9000/jandig-cdn/media/public/patts/glenda2-scale5.mind;" vr-mode-ui="enabled: true" device-orientation-permission-ui="enabled: false"> | ||
<a-assets> | ||
<video id="gif-video" src="http://localhost:9000/jandig-cdn/media/public/objects/temaki.webm" autoplay loop="true" crossorigin="anonymous"></video> | ||
</a-assets> | ||
<a-camera position="0 0 0" look-controls="enabled: false"></a-camera> | ||
<a-entity mindar-image="warmupTolerance: 1; filterMinCF:0.1; filterBeta: 10" mindar-image-target="targetIndex: 0"> | ||
<a-plane | ||
position="0 0 0" | ||
rotation="-90 0 0" | ||
width="1" | ||
height="1" | ||
material="src: #gif-video; transparent: true;" | ||
></a-plane> | ||
</a-entity> | ||
</a-scene> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters