Skip to content

Commit

Permalink
fixed location handlebars template
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolocarpignoli committed Mar 22, 2020
1 parent 698495c commit 38f0d87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
NFT=0
MARKER=1
LOCATION=1
10 changes: 5 additions & 5 deletions src/modules/location/templates/location.3d.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
<meta charset="utf-8">
<meta http-equiv="'X-UA-Compatible' content='IE=edge'">
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/master/aframe/build/aframe-ar.min.js"></script>
<script src="https://raw.githack.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
<script>
THREEx.ArToolkitContext.baseURL = 'https://raw.githack.com/jeromeetienne/ar.js/master/three.js/'
</script>
</head>

<body style="margin: 0; overflow: hidden;">
<a-scene
renderer="logarithmicDepthBuffer: true;"
vr-mode-ui="enabled: false"
arjs="sourceType: webcam; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960; debugUIEnabled: false;"
arjs="sourceType: webcam; debugUIEnabled: false;"
embedded
>
<a-entity
gltf-model="{{assetSrc}}"
rotation="0 180 0"
scale="1 1 1"
look-at="[gps-camera]"
gps-entity-place="longitude: {{longitude}}; latitude: {{latitude}};"
animation-mixer
></a-entity>
Expand Down

0 comments on commit 38f0d87

Please sign in to comment.