Skip to content

Commit

Permalink
✨ feat(app): add marker version
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque committed Aug 17, 2024
1 parent 304250f commit 290f591
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Binary file added assets/marker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
2 changes: 1 addition & 1 deletion markerCard.html → image.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
embedded arjs='trackingMethod: best; sourceType: webcam; debugUIEnabled: false;'>

<a-nft
type='nft' url='assets/trex'
type='nft' url='assets/image'
smooth='true' smoothCount='10' smoothTolerance='0.01' smoothThreshold='5'>
<a-entity
gltf-model='assets/bridge-v2.glb'
Expand Down
19 changes: 19 additions & 0 deletions marker.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<script src="https://aframe.io/releases/1.3.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/dev/aframe/build/aframe-ar.js"></script>
<body style="margin : 0px; overflow: hidden;">
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-entity
position="0 0 0"
rotation="0 90 0"
scale="0.05 0.05 0.05"
gltf-model="assets/bridge-v2.glb"
></a-entity>
</a-marker>
<a-entity camera></a-entity>
</a-scene>
</body>
</html>
6 changes: 3 additions & 3 deletions modelViewer.html → model.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
<!-- src="assets/Astronaut.glb" -->
<model-viewer
style='width: 100vw; height: 80vh;'
src="assets/bridge-v2.glb"
src="assets/bridge-v2-draco.gltf"
ar
poster="assets/bridge.webp"
ar-scale="fixed"
touch-action="pan-y"
shadow-intensity="2"
shadow-softness="0"
camera-controls
skybox-image="assets/modelViewer-env.jpg"
skybox-height="2m"
skybox-image="assets/model.jpg"
skybox-height="50m"
max-camera-orbit="auto 90deg auto"
xr-environment></model-viewer>
</body>
Expand Down

0 comments on commit 290f591

Please sign in to comment.