Skip to content

Commit af15e61

Browse files
fix: clean
1 parent 88dac54 commit af15e61

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.DS_Store
22
.atom-live-server.json
33
node_modules/*
4-
aframe/examples/darimuovere/

aframe/build/aframe-ar.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/examples/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<!-- Define your 3d scene and enabled ar.js -->
16-
<a-scene embedded arjs='trackingMethod: best;'>
16+
<a-scene embedded arjs='trackingMethod: best; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960;'>
1717

1818
<!-- Create a anchor to attach your augmented reality -->
1919
<a-anchor hit-testing-enabled='true'>

aframe/examples/darimuovere/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
77
<title>Cartigli AR</title>
88
<script src='https://aframe.io/releases/0.9.2/aframe.min.js'></script>
9-
<script src="../../../build/aframe-ar.min.js"></script>
9+
<script src="../../../build/aframe-ar.js"></script>
1010
<script src="https://unpkg.com/aframe-look-at-component@0.8.0/dist/aframe-look-at-component.min.js"></script>
1111
<script type="module" src="./index.js"></script>
1212
<link rel="stylesheet" type="text/css" href="./index.css"/>

aframe/examples/marker-events.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<br/>
3737
Contact me any time at <a href='https://twitter.com/jerome_etienne' target='_blank'>@jerome_etienne</a>
3838
</div>
39-
<a-scene embedded arjs='sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3;'>
39+
<a-scene embedded arjs='sourceType: webcam; detectionMode: mono_and_matrix; matrixCodeType: 3x3; sourceWidth:1280; sourceHeight:960; displayWidth: 1280; displayHeight: 960;'>
4040
<!-- handle hiro marker -->
4141
<!-- 'registerevents' will register event listeners for the marker when it is found and lost,
4242
as defined in the inline script above -->

aframe/src/location-based/gps-camera.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ AFRAME.registerComponent('gps-camera', {
194194
longitude: this.currentCoords.longitude,
195195
latitude: this.originCoords.latitude,
196196
};
197+
197198
position.x = this.computeDistanceMeters(this.originCoords, dstCoords);
198199
position.x *= this.currentCoords.longitude > this.originCoords.longitude ? 1 : -1;
199200

@@ -202,12 +203,14 @@ AFRAME.registerComponent('gps-camera', {
202203
longitude: this.originCoords.longitude,
203204
latitude: this.currentCoords.latitude,
204205
}
206+
205207
position.z = this.computeDistanceMeters(this.originCoords, dstCoords);
206208
position.z *= this.currentCoords.latitude > this.originCoords.latitude ? -1 : 1;
207209

208210
// update position
209211
this.el.setAttribute('position', position);
210212

213+
211214
window.dispatchEvent(new CustomEvent('gps-camera-update-position', { detail: { position: this.currentCoords, origin: this.originCoords }}));
212215
},
213216
/**

0 commit comments

Comments
 (0)